Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request for supporting "body objects" #49

Open
patro1 opened this issue Mar 12, 2021 · 51 comments
Open

request for supporting "body objects" #49

patro1 opened this issue Mar 12, 2021 · 51 comments
Assignees
Labels
enhancement New feature or request

Comments

@patro1
Copy link

patro1 commented Mar 12, 2021

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! We accept bounties via Bountysource.

@OmidGhotbi OmidGhotbi added the enhancement New feature or request label Mar 14, 2021
@OmidGhotbi OmidGhotbi self-assigned this Mar 15, 2021
@OmidGhotbi
Copy link
Member

Add support for Body object in v0.8.7916-beta

@patro1
Copy link
Author

patro1 commented Apr 17, 2021

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 OmidGhotbi reopened this Apr 17, 2021
@OmidGhotbi
Copy link
Member

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
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

OmidGhotbi commented Apr 18, 2021

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
Copy link
Author

patro1 commented Apr 18, 2021

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

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

there are 3 zip... one has the textures

@OmidGhotbi
Copy link
Member

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
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

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
Copy link
Author

patro1 commented Apr 18, 2021

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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

@OmidGhotbi
Copy link
Member

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
Copy link
Member

OmidGhotbi commented Apr 18, 2021

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
Copy link
Author

patro1 commented Apr 18, 2021

i'll post soon a pic

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

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
Copy link
Member

OmidGhotbi commented Apr 18, 2021

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

Screenshot 2021-04-18 221437

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

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
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

How to create body object i ment.

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

Fixed.

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

ok

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

which version of 3dsmax do you use?

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Author

patro1 commented Apr 18, 2021

which version of 3dsmax do you use?

2021

@OmidGhotbi
Copy link
Member

OmidGhotbi commented Apr 18, 2021

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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

already installed and tried. it works here. fixed

@OmidGhotbi
Copy link
Member

Finally.

@OmidGhotbi
Copy link
Member

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

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

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
Copy link
Member

flip is ok i think is a bit rotated.

@OmidGhotbi
Copy link
Member

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

@OmidGhotbi
Copy link
Member

Screenshot 2021-04-19 002229

@patro1
Copy link
Author

patro1 commented Apr 18, 2021

looks pefect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants