... no lights are going to be added in this design, though. it's mostly about shaders and its relation to a material..... You can export any variables to shader ... any lights variables or ... anything... example: scene::ILightSceneNode* l1 = smgr->addLightSceneNode( ... ); video::SLight ld = l1->g...
Hello dlangdev ... I intend to do that (a shader editor), but before ... I want to add some kind of templates ... Something like writting in a file or more many functions as applyLights() for example, then in other file write "include_file.tsh" (sht = shader template) and simply applyLight...
Instead of setting the default to PS 1.1, and VS 1.1, what I like to do is query the maximum supported shader model using driver->queryFeature() and use that instead, it's a good idea to compile for the highest supported shader model even on shaders that fall well below the instruction limit for ex...
dswshader.cpp /*************************************************************************** * Copyright (C) 2007-2008 by Radu Dumitru Bolovan * * radubolovan@darkstarlinux.ro * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public...
dswshader.h /*************************************************************************** * Copyright (C) 2007-2008 by Radu Dumitru Bolovan * * radubolovan@darkstarlinux.ro * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public L...
I've founnd that this problem is occurred when the wndow lose focus ;) so ... in .h: bool m_bTryToCreateNewContext; in .cpp: in constructor: m_bTryToCreateNewContext = false; in createNewContext() function: if( Context2 != 0 ) { GLXContext cntx; return cntx; } m_bTryToCreateNewContext = true; const ...
This is very nice. Coming soon this is a project which most of the code is ready but needs cleaning up and sorted in classes It is basically a set of classes that enable cinematic like rendering see the following: -HDR rendering -motion blur on camera velocity -scope effect -focus on certain objects...
This is still happening
The problem is that the window doesn't recieve an event ... I will see if can be resolved... maybe I should define the event.
Keep in touch.
I've found if the window doesn't recieve an event (from mouse or keyboard), the next line was not executed: Context2 = glXCreateNewContext( display, *configList, GLX_RGBA_TYPE, Context, True ); so the next code should resolve this problem; GLXContext const& CIrrDeviceLinux::createNewContext() { ...
I copied and pasted your code and runed it. 1) I use Linux & OpenGL so I made this change: IrrlichtDevice* device = createDevice( video::EDT_OPENGL, core::dimension2d<s32>(1024, 768)); 2) I can't see any mesh :( although it's loading!!! anyway ... I have found a solution for my problem ... here ...
I did some tests: I wrote a function adapted from core::line3d<f32> CSceneCollisionManager::getRayFromScreenCoordinates( core::position2d<s32> pos, ICameraSceneNode* camera) : void transform2dTo3d( core::position2d< s32 > const& pos2d, core::vector3df& pos ) { const scene::SViewFrustum* f = ...