material problem issue

Discussions about LuxRender's materials, and how to make the most of them.

Moderator: coordinators

Re: material problem issue

and now as you can see from the above image the chamfercylinder isn't smoothed... but faceted.

patro

Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: material problem issue

hedphelym wrote:When I try this in the lxs you posted I get this error all the time:
Code: Select all
[2010-09-14 17:58:15 Error: 43] Number of "N"s for mesh must match "P"s

I'm not sure but I think..... because the "float uv" have 2 values per point while the "normal N" have 3 value per point like the "point P"

if you replace the value of "normal N" with the one of "float uv" one value is missing per point in the hacked "normal N" data
that's probably why we get:
[2010-09-14 17:58:15 Error: 43] Number of "N"s for mesh must match "P"s

patro

Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: material problem issue

we need to fix it properly.

Jeanphi, can you help telling me how I can pinpoint the problem? exactly what is going wrong?
(As I understand you understand the problem.)

big thanks to both of you!

hedphelym

Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: material problem issue

Hi,

I gues the function you call to get the point coordinates applies the transform while the one you call to get the normal doesn't. I don't know 3DS API so I fear I can't of much more help here.
jeanphi

Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: material problem issue

I've isolated the area in the code where the trouble is located.
Looking into it as best as I can.

hedphelym

Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: material problem issue

one step up to solution...

patro

Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: material problem issue

I have code to solve that I'll take a look tomorrow

cheers!
PerPixel

Posts: 107
Joined: Fri Jul 03, 2009 7:13 am

Re: material problem issue

Thank you PerPixel - it was a bit too advanced for me at this stage, so that will help greatly!

hedphelym

Posts: 792
Joined: Mon Aug 18, 2008 7:37 am
Location: Kristiansand Norway

Re: material problem issue

PerPixel wrote:I have code to solve that I'll take a look tomorrow

cheers!

nice to see you
since you and Hedphelym have limited time to spend on LuxMax..... it would be nice if both can contribute to LuxMax.
please consider mine only a wish, not a request.

cheers
Last edited by patro on Thu Sep 16, 2010 5:32 am, edited 1 time in total.

patro

Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: material problem issue

I don't know if the problem is the same and related or something a bit different...
so please by attempting to solve the issue, consider that the chamferbox isn't rotated and have still some black faces, always the ones far from camera.

test.lxs

patro

Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

PreviousNext