Search found 43 matches

by LosNir
Tue May 18, 2010 12:44 am
Forum: Game Programming
Topic: cool graphic stuff
Replies: 6
Views: 2950

I've put some effort to port it into Irrlicht. It's a real pain. So far I've get the shaders to load successfully (not easy as you might think) and set some constants. That's more or less what I did, but can't really advance forward from here.. too complicated! lol Maybe someone here can shed some l...
by LosNir
Sun May 16, 2010 3:51 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

I see. Is it possible to convert raw texture into bitmap texture? Photoshop can do the work?
by LosNir
Sun May 16, 2010 3:26 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

float *data = new float[16*64*3]; FILE *f = fopen("data/irradiance.raw", "rb"); fread(data, 1, 16*64*3*sizeof(float), f); fclose(f); glActiveTexture(GL_TEXTURE0 + IRRADIANCE_UNIT); glGenTextures(1, &irradianceTex); glBindTexture(GL_TEXTURE_2D, irradianceTex); glTexParameteri...
by LosNir
Sun May 16, 2010 10:37 am
Forum: Project Announcements
Topic: We finished the Spacework
Replies: 22
Views: 4109

Looks very nice :D
But it doesn't run.. it just gets minimized all the time.
by LosNir
Sun May 16, 2010 4:57 am
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

Yup, for example I did:

Code: Select all

rServices->setPixelShaderConstant("skyIrradianceSampler", &this->m_irradianceUnit, 1);
by LosNir
Sat May 15, 2010 8:24 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

Another question, when calling "setPixelShaderConstant" on the ShaderConstantCallback, what value of count should I use for the following types?

sampler2D
sampler3D
float

Thanks.
by LosNir
Sat May 15, 2010 5:00 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

I've made some progress. Some of the shaders are loaded successfully, but some giving me compile error: [GUI Engine] Sucessfully loaded font 'fonts/arial12.bmp' as `defaultFont`! Loading Shader.. ocean.glsl Loading Shader.. sky.glsl GLSL shader failed to compile 0(532) : error C1008: undefined varia...
by LosNir
Sat May 15, 2010 12:09 am
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

Alright. Before I continue, what is exactly the value returned from `addHighLevelShaderMaterial`? glCreateProgram?
by LosNir
Fri May 14, 2010 9:12 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

I've made some more reading. The "Irrlicht function" you are talking about is addHighLevelShaderMaterial / FromFiles.. right? I've taken another look at the code, and it seems it loads the shader files, adds some #define lines and adds the options passed. If you take a look at the code, as...
by LosNir
Fri May 14, 2010 1:38 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

Yeah I know that, that's what Irrlicht is for. But I have some tons of OpenGL functions and I don't know which is which. Which is done by function X of irrlicht and which is done by function Y of irrlicht. I have this code for exmaple: Program::Program(int files, char** fileNames, char *options) { p...
by LosNir
Fri May 14, 2010 1:19 pm
Forum: Advanced Help
Topic: C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)
Replies: 17
Views: 4197

C++ OpenGL to Irrlicht (Using OpenGL functions in irrlicht)

Hi. I'm trying to port a pure written OpenGL Shader Program (not .glsl files!) to pure irrlicht functions. How do I access OpenGL functions like "glCreateShader" or "glUniform1f" in irrlicht? Something like: ClassToHandleShaders* useSahders = new ClassToHandleShaders(); useShader...
by LosNir
Fri May 14, 2010 1:11 pm
Forum: Code Snippets
Topic: My Game Source code
Replies: 35
Views: 11349

Mention one place I talked about my ideology. Compared to your "Operation Flashpoint" example, the developer here really believes in what he does, and the topic wasn't arbitrary chosen, while in "Operation Flashpoint" it is. Do you think the game is the world-view of the employee...
by LosNir
Fri May 14, 2010 11:19 am
Forum: Code Snippets
Topic: My Game Source code
Replies: 35
Views: 11349

I won't argue with your opinions, but deleting my comment IS censorship.

Anyway, my previous comment was actually supportive (that why I said "Good minds") - maybe it wasn't clear enough.

P.S. You can see that quote here; http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=36975
by LosNir
Fri May 14, 2010 10:55 am
Forum: Project Announcements
Topic: Irrlicht i18n (Unicode, FreeType, etc.)
Replies: 176
Views: 110238

I used different fonts, with size 14, and never called the functions you mentioned. Anyway after the update it now works.

Thanks!
by LosNir
Fri May 14, 2010 10:20 am
Forum: Code Snippets
Topic: My Game Source code
Replies: 35
Views: 11349

Give me a break, wrong attitude? You're giving him legitimization for doing such stuff. Have you ever played his game? http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=36975 Content-wise it's ... well a palestinian team doing a game that is about killing Israelis is probably as much of a bad c...