Search found 86 matches

by vectorcorpse
Thu Dec 29, 2016 11:15 pm
Forum: Advanced Help
Topic: how to get Pixel wold position back?
Replies: 7
Views: 1410

Re: how to get Pixel wold position back?

Any news/ideas?
by vectorcorpse
Wed Nov 30, 2016 4:27 pm
Forum: Advanced Help
Topic: how to get Pixel wold position back?
Replies: 7
Views: 1410

Re: how to get Pixel wold position back?

The only similar thing on the subject i managed to found here in the forums is this:
http://irrlicht.sourceforge.net/forum/v ... =4&t=33984
but it only mentions the shader side and not the irrlicht side on how to extract pixel world coordinates
maybe devsh can shed some light :D
by vectorcorpse
Wed Nov 23, 2016 12:31 pm
Forum: Advanced Help
Topic: how to get Pixel wold position back?
Replies: 7
Views: 1410

Re: how to get Pixel wold position back?

yes, i know how to work with the depth buffer and matrix transformation (it is the same has working with shadow mapping), i also know it is really slow to bring things from a shader to system memory, but since i don't have access to geometry shader (old graphics card) i don't have another choice, in...
by vectorcorpse
Wed Nov 23, 2016 12:36 am
Forum: Advanced Help
Topic: how to get Pixel wold position back?
Replies: 7
Views: 1410

how to get Pixel wold position back?

Hi, lets say we i have a pixel in fragment shader not necessarily a depth one and i want to recover that pixel position in world space back in the irrlicht to be processed on the CPU, but the only thing that gets out from there are images therefore clamped to the color range...
by vectorcorpse
Sun Nov 20, 2016 12:04 am
Forum: Advanced Help
Topic: Ways to set Shader Parameters
Replies: 26
Views: 3329

Re: Ways to set Shader Parameters

well, i just tested it and it does work fine :D ehe
by vectorcorpse
Sat Nov 19, 2016 1:31 am
Forum: Advanced Help
Topic: Ways to set Shader Parameters
Replies: 26
Views: 3329

Re: Ways to set Shader Parameters

btw this just came to my mind, i did not test it but wouldn't this work? in shader: struct LightSource {         int Type;         vec3 Position;         vec3 Attenuation;         vec3 Direction;         vec3 Color; };   uniform LightSource Light[4]; then on irrlicht push the values 1 by 1 with: set...
by vectorcorpse
Fri Nov 18, 2016 4:45 pm
Forum: Advanced Help
Topic: Ways to set Shader Parameters
Replies: 26
Views: 3329

Re: Ways to set Shader Parameters

nice, :D i'm glad my question contributed in some way also i see the potential of what you are trying to do here, and hoping you succeed, i have a AMD card (Radeon 4850 aka RV770) running on linux with gallium drivers if you need any help to adjust your shaders for this kind of hardware, i can tell ...
by vectorcorpse
Fri Nov 18, 2016 2:16 am
Forum: Advanced Help
Topic: Ways to set Shader Parameters
Replies: 26
Views: 3329

Re: Ways to set Shader Parameters

Vectrotek you got me curious with something, why on COpenGLSLMaterialRenderer.cpp on the setPixelShaderConstant the variable count feeded to the extGlUniform(s) are being divided by 2 ?!? according to this: https://www.opengl.org/sdk/docs/man/html/glUniform.xhtml the count is needed to set the numbe...
by vectorcorpse
Fri Nov 18, 2016 1:06 am
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

Re: problem accessing GUI element attributes

Thank you both for the tips they really helped, CuteAlien that last tip really was a duh on me LOL but managed to make the so much needed click on my head, it was something really easy that i was missing and there was no need for serialization at all all i was missing was pulling the context menu as...
by vectorcorpse
Thu Nov 17, 2016 9:51 am
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

Re: problem accessing GUI element attributes

Lets say i do this:     gui::IGUIContextMenu* menu = env->addMenu();     menu->addItem(L"File", -1, true, true);     menu->addItem(L"View", -1, true, true);     menu->addItem(L"Camera", -1, true, true);     menu->addItem(L"Help", -1, true, true); and later i w...
by vectorcorpse
Thu Nov 17, 2016 9:47 am
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

Re: problem accessing GUI element attributes

btw, if i create an item with additem it is easy to set attributes has they are set on creation, but changing some of them like the text in a menu (file, edit, options...) after creation is the part i don't understand
by vectorcorpse
Thu Nov 17, 2016 9:40 am
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

Re: problem accessing GUI element attributes

yes, the second part of the code is how i use to save and load config data to/from a xml file, but now i need to edit from memory and i am not being able to understand how the serialize/deserialize relates to the element attributes, maybe i am missing something really easy...
by vectorcorpse
Wed Nov 16, 2016 11:42 pm
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

Re: problem accessing GUI element attributes

is there any detailed tutorial on how to handle IAttributes? besides de Irrlicht API i don't quite grasp the way they work from looking at the source of the GUI editor, its way to many things at once. what do you recommend me to study to get in touch with its inner working, considering i have no clu...
by vectorcorpse
Wed Nov 16, 2016 11:35 pm
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

Re: problem accessing GUI element attributes

well, nope, i don't have a IAttributes pointer :P i am translating things like window caption text or button caption text like this: guienv->getRootGUIElement()->getElementFromId(0)->setText(utf8_to_wide(dict.translate(wide_to_utf8(guienv->getRootGUIElement()->getElementFromId(0)->getText())).c_str(...
by vectorcorpse
Wed Nov 16, 2016 3:28 pm
Forum: Advanced Help
Topic: problem accessing GUI element attributes (solved)
Replies: 9
Views: 1190

problem accessing GUI element attributes (solved)

Hi, i am writing a multi language app with i18n support already working, and i am using the irrlicht GUI and the the GUI editor to create the menus. I managed to get around the missing factory in the editor by creating the drop down menu in code and saving the GUI to xml, but now i am not being able...