ParticleINFO Node

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

ParticleINFO Node

Post by u3dreal »

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 - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
User avatar
u3dreal
Developer
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: ParticleINFO Node

Post by u3dreal »

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 - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ParticleINFO Node

Post by B.Y.O.B. »

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
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: ParticleINFO Node

Post by u3dreal »

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 - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ParticleINFO Node

Post by B.Y.O.B. »

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
Developer
Posts: 560
Joined: Tue Dec 03, 2019 3:23 pm
Location: Ulm
Contact:

Re: ParticleINFO Node

Post by u3dreal »

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 - BigSur
Xeon X5650@4Ghz, RX 5700 - BigSur , Windows 10, Ubuntu 20.04
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: ParticleINFO Node

Post by B.Y.O.B. »

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