1.8 - invisible water and particles?
1.8 - invisible water and particles?
When compiled in 1.7.2, it looks ok. When compiled in latest SVN, my particles and water are invisible or missing.
Re: 1.8 - invisible water and particles?
You mean trunk or as in topic stable v1.8? If it's related to OpenGL driver please use rev4402 or older (my latest commits require more tests and may be unstable in some cases).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: 1.8 - invisible water and particles?
In case you simply have problems with transparency, try setting the blend mode in the material
Re: 1.8 - invisible water and particles?
I found this:
material.BlendOperation = video::EBO_ADD;
What if the model is loaded with the material, how do I set it to blend?
material.BlendOperation = video::EBO_ADD;
What if the model is loaded with the material, how do I set it to blend?
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: 1.8 - invisible water and particles?
If some loader does not set this flag properly, it has to be fixed in the source. Please provide an example file for this, or at least give some more details. And of course you can traverse all meshbuffers and check the material and set the blend op accordingly.
Re: 1.8 - invisible water and particles?
Here is one particle sample I tried, works in 1.7.2 but not in the SVN update version of 1.8 (revision 4409).
Code:
http://pastebin.com/H2f1EBBK
Dust.png:
http://imagebin.org/240254
Code:
http://pastebin.com/H2f1EBBK
Dust.png:
http://imagebin.org/240254
Re: 1.8 - invisible water and particles?
Yes, it has to be set now for custom materials. The questions was rather if you have an example for a 3d model where the format-loader messes this up.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: 1.8 - invisible water and particles?
nah it's just particles i'm having trouble with