LuxCoreRender / MaxToLux

Max integration for LuxCore
GNU General Public License v3.0
12 stars 1 forks source link

request for supporting "body objects" #49

Open patro1 opened 3 years ago

patro1 commented 3 years ago

this is a request to support "body objects" geometries to maxtolux

link to description of the geometry type https://download.autodesk.com/us/3DSmax/2012help/index.html?url=files/GUID-A859685F-9927-4C7D-B36D-1E91238558D-2848.htm,topicNumber=d28e527079

Edited: the request is to extend the support to all nurbs classes supported by 3ds max like brep and nurbs surfaces.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/97164913-request-for-supporting-body-objects?utm_campaign=plugin&utm_content=tracker%2F131121230&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F131121230&utm_medium=issues&utm_source=github).
OmidGhotbi commented 3 years ago

Add support for Body object in v0.8.7916-beta

patro1 commented 3 years ago

in v0.8.7916-beta I noticed that I still need to link the body objects because some disappear in the render, not always, not in every scene, for example it doesn't happen with LuxTeaPot The mapping works only if I add the unwrap UVW to the body objects, otherwise they render without texture. Maybe the instancing and reference get broken on export. for body objects( i must check this)

OmidGhotbi commented 3 years ago

i need a broken scene so i can investigate the issue, MaxToLux read data from the mesh itself if the object has UV it will support it if it doesn't so it will be rendered with no UV at all.

patro1 commented 3 years ago

Hi Omid, I tried to put together few test scenes, all the same, so you may check instancing after exporting, mapping and geometry appaering and dissapaering. just open and hit render. Every zip contains a max 2021 scene and a text file. Only test instanced body objects.zip contains the maps. test instanced body objects.zip test disappaering objects group.zip test instanced body objects mapping.zip

OmidGhotbi commented 3 years ago

I'm not getting the problem, they are rendered very normally and perfect. Screenshot 2021-04-18 214119 I check all the files and no problem at all, you just need to remove the black background and that's all, Also it's need just 200MB of memory. 3dsmax + scene 1900MB ram. Screenshot 2021-04-18 214553

patro1 commented 3 years ago

did you turn on off the layers as i explained in the text? as I see texture map is not visible

OmidGhotbi commented 3 years ago

There is no texture available in the zip you send to me.

patro1 commented 3 years ago

there are 3 zip... one has the textures

OmidGhotbi commented 3 years ago

For object like that i always save objects and with save selected object to be sure there is no problem with the old scene and the merge it to empty scene or final project that i want to render.

patro1 commented 3 years ago

Omid, I did exactly that, to save just the geometries i needed to show you. Maybe you didn't download the other zip files.

OmidGhotbi commented 3 years ago

i check with the texture too, it is ok, it was a room for HDRI

patro1 commented 3 years ago

I meant the marble texture on the obj namewd sphere 1 2 3 4.. withouth unwrap uvw it won't be visible in render

OmidGhotbi commented 3 years ago

Did you ever try to add an edit poly modifier for the object. it will show you your object does not have any use set. Screenshot 2021-04-18 220249 By the way, the object and instance are completely correct, not disappearing. Screenshot 2021-04-18 215810

patro1 commented 3 years ago

just turm off layer pompom up and fringe up and render. try please

patro1 commented 3 years ago

of course i added edit poly or edit mesh modifier, but it doesn't work always.

OmidGhotbi commented 3 years ago

Screenshot 2021-04-18 221329 turn of the coroni pompom By the way, the scene contains many issues, where did you find this type of object anyway maybe i can see what's the problem. look here even in the viewport the objects not showing correctly, just try turn of the groups. Screenshot 2021-04-18 221437

OmidGhotbi commented 3 years ago

i mean if you add the edit poly on top of your object you will see the object does not have any UVs. and they will turn to gray with no UV. i think there is a different type of UV like pixel paint.

patro1 commented 3 years ago

i'll post soon a pic

patro1 commented 3 years ago

rendered the max file named test instanced body objects..max it doesn't has grouped geometries 2021-04-18_211208

patro1 commented 3 years ago

the geometries in the red circle shouldn't be there. they are off, if i invert the on off layers it happens the same

OmidGhotbi commented 3 years ago

I check with other renderers, it does not have a UV it is just a random mapping by faces. Screenshot 2021-04-18 222522

OmidGhotbi commented 3 years ago

test instanced body objects..max has just one object in viewport ver is the second one come from? Screenshot 2021-04-18 222928

patro1 commented 3 years ago

test instanced body objects..max has just one object in viewport ver is the second one come from? Screenshot 2021-04-18 222928

they are coming from the layers which are off

OmidGhotbi commented 3 years ago

Screenshot 2021-04-18 221437

OmidGhotbi commented 3 years ago

That means every software has a few issues with hiding and unhide objects in this format or scene.

patro1 commented 3 years ago

Dude i told you, if you turn the group of the same thing will happened to viewport, object will stay shown.

Omid, why don't you understand me. I rendered a scene with no groups. and the geometries on the off layers are visible partly in the rendered image.

OmidGhotbi commented 3 years ago

I will investigate it more, i see the same issue with other renderers but i will find a way. just tell me how to create this type of objects.

patro1 commented 3 years ago

how? I create first set, pompon up and with fringes up then i copy instance them, after i create new layers for the new instanced geometries set

I never saw this is issue before, but i only use vray.

OmidGhotbi commented 3 years ago

How to create body object i ment.

patro1 commented 3 years ago

How to create body object i ment.

to create body object i think you can only by importing nurbs CAD geometries in max, files like .sat, .step., *.igs and solid works and catia files. 3ds max can create nurbs surfaces, from the create pannel look for "nurbs surfaces" in drop down menu

If you need body objects, there is a great source in the internet a website called https://grabcad.com/library they are all free model. the omega seamaster was downloaded from there.

OmidGhotbi commented 3 years ago

Fixed.

OmidGhotbi commented 3 years ago

If you have time wait to send you a nightly build to test with.

patro1 commented 3 years ago

ok

OmidGhotbi commented 3 years ago

I noticed you are using Intel Gpu/Cpu for OCL. it is slower than PathCpu much slower.

patro1 commented 3 years ago

I use PathOCL with Cuda_gpu device selected I use PathCpu with no GPU device selected I'm doing something wrong?

OmidGhotbi commented 3 years ago

It's ok, on my computer IntelGpu was selected so i think is may be the same for you.

patro1 commented 3 years ago

It's ok, on my computer IntelGpu was selected so i think is may be the same for you.

ah sure, It happens randomly that intel gpu is selected, so before to render i always check the rendering setting.

OmidGhotbi commented 3 years ago

which version of 3dsmax do you use?

patro1 commented 3 years ago

about body objects, for example, I downloaded the watch model, so to post there the render, maybe someone would get interested in LuxCore https://grabcad.com/library/omega-seamaster-1 if you scroll down the page you'll see the render i posted

patro1 commented 3 years ago

which version of 3dsmax do you use?

2021

OmidGhotbi commented 3 years ago

Copy this file to the plugin folder and check. MaxToLux2021.zip remember to unzip it first.

patro1 commented 3 years ago

i'll test it, of course I'll get back to you

OmidGhotbi commented 3 years ago

if it is hard to copy let me know i will send you new installer

patro1 commented 3 years ago

if it is hard to copy let me know i will send you new installer

already installed and tried. it works here. fixed

OmidGhotbi commented 3 years ago

Finally.

OmidGhotbi commented 3 years ago

Now i will work on why the environment map is a little bit high in contrast and not smooth.

patro1 commented 3 years ago

Now i will work on why the environment map is a little bit high in contrast and not smooth.

well check also the flipping while you are on it

OmidGhotbi commented 3 years ago

flip is ok i think is a bit rotated.

OmidGhotbi commented 3 years ago

I will open another issue for it as this tread is done and Finished. Continue on the new issue.

OmidGhotbi commented 3 years ago

Screenshot 2021-04-19 002229