1.8 - invisible water and particles?

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

1.8 - invisible water and particles?

Post by drarem »

When compiled in 1.7.2, it looks ok. When compiled in latest SVN, my particles and water are invisible or missing.
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: 1.8 - invisible water and particles?

Post by Nadro »

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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: 1.8 - invisible water and particles?

Post by hybrid »

In case you simply have problems with transparency, try setting the blend mode in the material
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Re: 1.8 - invisible water and particles?

Post by drarem »

I found this:
material.BlendOperation = video::EBO_ADD;

What if the model is loaded with the material, how do I set it to blend?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: 1.8 - invisible water and particles?

Post by hybrid »

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.
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Re: 1.8 - invisible water and particles?

Post by drarem »

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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: 1.8 - invisible water and particles?

Post by CuteAlien »

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
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Re: 1.8 - invisible water and particles?

Post by drarem »

nah it's just particles i'm having trouble with
Post Reply