ParticleINFO Node

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
User avatar
u3dreal
Developer
Posts: 421
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

ParticleINFO Node

Post by u3dreal » Wed Dec 11, 2019 9:34 pm

Hi

I was wondering if it would be too hard to add Particle Info to Lux Nodes.

To get a better understanding of what is going on i would like to add object location to the objectid Node.

Can someone plz give me starting point ?

Thanks u3dreal
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, 2x GTX 770 Phantom RX 5700 - Catalina / High Sierra, Windows 10, Ubuntu 18.04

User avatar
u3dreal
Developer
Posts: 421
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: ParticleINFO Node

Post by u3dreal » Fri Dec 13, 2019 12:48 am

I sure would start somewhere here .... but where does this node get it's information from ?? Sorry as an artist it is really hard to read good code :|

https://github.com/u3dreal/BlendLuxCore ... bjectid.py
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, 2x GTX 770 Phantom RX 5700 - Catalina / High Sierra, Windows 10, Ubuntu 18.04

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ParticleINFO Node

Post by B.Y.O.B. » Fri Dec 13, 2019 2:13 am

The file you linked just defines the visibile facade of the objectid texture.
What you want is the LuxCore code: https://github.com/LuxCoreRender/LuxCor ... ect_id.cpp

User avatar
u3dreal
Developer
Posts: 421
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: ParticleINFO Node

Post by u3dreal » Sun Dec 15, 2019 2:29 am

Hmm i feared so .... so concerning particles all would have to be done in LUX then.
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, 2x GTX 770 Phantom RX 5700 - Catalina / High Sierra, Windows 10, Ubuntu 18.04

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ParticleINFO Node

Post by B.Y.O.B. » Sun Dec 15, 2019 10:18 am

Yes, and in LuxCore there is no concept of particles, they are all just normal objects (sharing the same mesh, aka instanced).
So any information about a particle that you want to store needs to be added to the object data in LuxCore, and it needs to be accessed through the hitpoint struct during render time.

User avatar
u3dreal
Developer
Posts: 421
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: ParticleINFO Node

Post by u3dreal » Sun Dec 15, 2019 6:15 pm

Hm ... and particles in lux are just matrices of an instance object. So only the position is saved per particle.
check out my newest stuff http://q3de.com/research/
portfolio http://q3de.com/


MB Pro i7 2.3Ghz, IrisPro 1.5GB, GTX750m 2GB - High Sierra
Xeon X5650@4Ghz, 2x GTX 770 Phantom RX 5700 - Catalina / High Sierra, Windows 10, Ubuntu 18.04

User avatar
B.Y.O.B.
Developer
Posts: 3681
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ParticleINFO Node

Post by B.Y.O.B. » Sun Dec 15, 2019 7:52 pm

Well, you also get all the other object attributes, like object ID. But yes, particles in Lux are just regular instance objects.

Post Reply