How to add irr-scene to node?
How to add irr-scene to node?
I need disable filtering, lighting, make a transform, copy / remove and more with irr-scene.
how can i do that?
Maybe need to add irr-scene to node?
But how ?
how can i do that?
Maybe need to add irr-scene to node?
But how ?
Re: How to add irr-scene to node?
You can create a new node and then go over children of root recursively and add scenepointers there. If you need real copies you can use ISceneNode::clone() for each node.
You can also create a new SceneManager with ISceneManager::createNewSceneManager
In many situations it also makes sense working without SceneManager - but rendering Noder or even Meshes directly - as you can then influence settings easier per node.
In Irrlicht trunk there now an IVideoDriver:: getOverrideMaterial which also allows you to change some material settings for a drawAll() without having to change the nodes/materials themself.
Hope this gives you a few ideas.
You can also create a new SceneManager with ISceneManager::createNewSceneManager
In many situations it also makes sense working without SceneManager - but rendering Noder or even Meshes directly - as you can then influence settings easier per node.
In Irrlicht trunk there now an IVideoDriver:: getOverrideMaterial which also allows you to change some material settings for a drawAll() without having to change the nodes/materials themself.
Hope this gives you a few ideas.
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: How to add irr-scene to node?
I'm trying this, but nothing changed
Also, in my interest to run my project on old hardware (Voodoo 2 + pentium MMX), however there are such troubles:
If I switch to videocard Ati Rage2 - textures are normal. But FPS is low
Any ideas on this?
Code: Select all
driver->getOverrideMaterial().Material.setFlag(EMF_LIGHTING, false );
driver->getOverrideMaterial().Material.setFlag(EMF_BILINEAR_FILTER , false );
If I switch to videocard Ati Rage2 - textures are normal. But FPS is low
Any ideas on this?
Re: How to add irr-scene to node?
hmmm....Voodoo2 did not work in 8 bits per channel internally, and could only accept RGB 565 textures
Re: How to add irr-scene to node?
is it possible to change in render texture format to ARGB1555?
Re: How to add irr-scene to node?
Yeah, sorry, have to improve documentation for override material. You have to set EnablePasses to the passes in which you want it to be active. Otherwise scenemanager will never enable it.
Do you mean render target texture? Those have a color-format parameter when you create them.
For all other textures you can try IVideoDriver::setTextureCreationFlag(irr::video::ETCF_ALWAYS_16_BIT, true);
And maybe setTextureCreationFlag(irr::video::ETCF_ALWAYS_32_BIT, false);
Do you mean render target texture? Those have a color-format parameter when you create them.
For all other textures you can try IVideoDriver::setTextureCreationFlag(irr::video::ETCF_ALWAYS_16_BIT, true);
And maybe setTextureCreationFlag(irr::video::ETCF_ALWAYS_32_BIT, false);
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: How to add irr-scene to node?
Nice!
But billboards from irrScene still under filtering.
But billboards from irrScene still under filtering.
Re: How to add irr-scene to node?
Which driver are you working with?
Also check if there are any log-messages which look suspicious.
Also check if there are any log-messages which look suspicious.
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: How to add irr-scene to node?
I'm trying OpenGL and DX.
in both cases billboard are filtering
log:
in both cases billboard are filtering
log:
Re: How to add irr-scene to node?
Any chance you can create me some code with which I can reproduce this? Or is that likely a thing only on your system? Maybe if I got some code I can try doing stuff like setting my destkop to 16-bit or so (if that's still possible nowadays). But without any code - not really sure how to start. This need some debugging to see what kind of formats the textures are internally chosing and why.
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: How to add irr-scene to node?
Found maybe something. Ensure ETCF_OPTIMIZED_FOR_QUALITY is also disabled or it may override ETCF_ALWAYS_16_BIT.
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: How to add irr-scene to node?
Here is source code and resources
https://www.dropbox.com/s/obajzq16y90or ... 2.rar?dl=0
https://www.dropbox.com/s/obajzq16y90or ... 2.rar?dl=0
Re: How to add irr-scene to node?
Did you try disabling ETCF_OPTIMIZED_FOR_QUALITY already?
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: How to add irr-scene to node?
Yes, Im try to add this lineCuteAlien wrote:Did you try disabling ETCF_OPTIMIZED_FOR_QUALITY already?
Code: Select all
driver->setTextureCreationFlag(video::ETCF_OPTIMIZED_FOR_QUALITY, true );
Re: How to add irr-scene to node?
CuteAlien wrote: Or is that likely a thing only on your system?
I testing this on intel core i5+gtx960 under win7 64bit
and on Pentium mmx + voodoo2 under win98SE