Mesh object does not load material properly

70 views
Skip to first unread message

Diego Botija Slavicek

unread,
Nov 17, 2022, 12:42:36 PM11/17/22
to Accelerad Users
Hi,
I have an issue with mesh objects in Accelerad that do no seem to load the material specified in the radiance file.

With Radiance the meshes in the .oct look fine when looking at them with rvu but when I open the same .oct with AcceleradRT (same view and exposure) it's completelly black:
Radiance.PNGAccelerad.PNG


I also tried it with both rtraces and the result is different:

#?RADIANCE
oconv ./sky.rad
rtrace -oovs
SOFTWARE= RADIANCE 5.4a 2022-10-09 LBNL (5.4.59a8e3e767)
CAPDATE= 2022:11:17 18:21:36
GMT= 2022:11:17 17:21:36
NCOMP=7
FORMAT=ascii

1.313600e+02    3.715000e+01    3.682013e+03    1.748161e+00    4.480814e+00    1.499738e+00    surface1

,compared to:

#?RADIANCE
oconv ./sky.rad
accelerad_rtrace -oovs
SOFTWARE= Accelerad 0.7 beta lastmod Mon 04/15/2019 by candela\natha on Candela (based on RADIANCE 5.2.b1862446a1 by G. Ward)
CAPDATE= 2022:11:17 18:22:06
GMT= 2022:11:17 17:22:06
FORMAT=ascii

1.313600e+002    3.715000e+001    3.682013e+003    1.282737e+000    8.271442e-001    7.209867e-001    *   


It looks like it doesn't recognize the mesh object.

I generated the mesh file with Radiance's obj2mesh.

I tried generating directly a .rad with obj2rad and that works well, but it seems a worse solution in terms of memory and performance as it saves it as a collection of triangles. With the parameter -g-, to run it in the CPU, it also works fine.

The only other thing in the scene is a sky generated with gendaylit.

Regards,
Diego




Nathaniel Jones

unread,
Nov 17, 2022, 1:19:29 PM11/17/22
to Accelerad Users
Hi Diego,

How have you defined the material for the mesh? If the material is assigned in the mesh file, try assigning it to the mesh object in the .rad file instead. Or, if the mesh object is currently assigned a material, try assigning it "void" and setting the material definition in the mesh file instead.

Nathaniel

Diego Botija Slavicek

unread,
Nov 18, 2022, 5:45:35 AM11/18/22
to Accelerad Users
Hi Nathaniel,

I defined the material in the .rad file.

I have just tried defining the material in the mesh and setting it to void in the .rad but the result is the same, looks fine in rvu but black in AcceleradRT.
I also have tried to set the same material in both the mesh and the .rad, but the result is the same.

One thing I realized is that if I don't define the material in any place for the mesh, in rvu the mesh doesn't appear but in AcceleradRT I see the mesh in black like in the other cases. So it may be a problem with the mesh itself and not the material.

Diego

Nathaniel Jones

unread,
Nov 21, 2022, 9:21:08 AM11/21/22
to Accelerad Users
Hi Diego,

How have you defined the material of the mesh?

Diego

unread,
Nov 21, 2022, 10:36:49 AM11/21/22
to Accelerad Users
Hi Nathaniel,

So, for the original scene this is the material and object I have defined in a .rad file:
void plastic grass
0
0
5 0.190 0.487 0.163 0 0

grass mesh surface1
1 surface.rtm
0
0

And for the scene I tried to assign the material to the mesh, I created a file with the same material and then added usemtl ground_mat to the .obj before calling the obj2mesh as:
obj2mesh -a grass.mat surface.obj surface.rtm
Reply all
Reply to author
Forward
0 new messages