Search found 226 matches

by freetimecoder
Sat Jul 30, 2011 1:42 pm
Forum: Beginners Help
Topic: locale/setlocale etc won't compile
Replies: 0
Views: 480

locale/setlocale etc won't compile

Hi, this is Irrlicht related in a roundabout way, because the xml writer is affected by it. I want to write vector3d attributes to a file but it turns out "123,0000, 32,00000, 14,0000" instead of "123.0000, 32.00000, 14.0000". I searched for a solution and found out about the loc...
by freetimecoder
Mon Jun 20, 2011 5:34 pm
Forum: Game Programming
Topic: Adventure Game - Coding Concept and Questions
Replies: 0
Views: 1332

Adventure Game - Coding Concept and Questions

Hi, I have been planning on how to best make a Myst-like Point & Click adventure game. However, I am far from the final concept, but I would like a bit of feedback and suggestions. This game is supposed to be a redesign of my first 'game' ever. Back in 2003 I hacked it together with Adobe's Imag...
by freetimecoder
Tue Jun 14, 2011 7:14 am
Forum: Beginners Help
Topic: how can i make GUI (not like on the examples) in inside
Replies: 4
Views: 337

If you want a very comfortable skinnable Gui, try CEGUI: http://www.cegui.org.uk/wiki/index.php/Main_Page (Not a 'simple' GUI though)
Other than that you can also try implementing your own gui with the 2d/3d functions of irrlicht, but that could be a lot of work depending on your needs.

greetings
by freetimecoder
Mon May 23, 2011 9:49 pm
Forum: Beginners Help
Topic: Listing and Writing Filenames with Unicode (mac)
Replies: 2
Views: 287

Yea, prefixing garbage names it. How do I open the text file in UTF-8 mode?
I only found the option to open it in binary mode ("wb") but that gives me the same errors.

greetings
by freetimecoder
Fri May 20, 2011 7:29 am
Forum: Code Snippets
Topic: Texture Splatting [OpenGL]
Replies: 43
Views: 24397

Hi, if you can't find a way, you can use this modfied shader: const c8 *vertShader = "void main()\ {\ gl_TexCoord[0] = gl_MultiTexCoord0;\ gl_Position = ftransform();\ }\ "; //Fragment Shader const c8 *fragShader = "uniform sampler2D splatMap;\ uniform sampler2D layer_red;\ uniform sa...
by freetimecoder
Thu May 19, 2011 9:36 pm
Forum: Code Snippets
Topic: Texture Splatting [OpenGL]
Replies: 43
Views: 24397

Hi, Buck1000: The shader takes the first uv layer(0) for the splatting map and the second(1) for the other textures. Simply add two uv layers to your model and scale the first one so that the splatmap fits correctly and the second so that the other materials are tiled. If you only want one uv layer,...
by freetimecoder
Tue May 17, 2011 7:49 am
Forum: Beginners Help
Topic: Listing and Writing Filenames with Unicode (mac)
Replies: 2
Views: 287

Listing and Writing Filenames with Unicode (mac)

Hi, I have a (not Irrlicht related) problem: I need to list files in a directory and write the list to a file. Everything works fine, except for files with special characters, e.g. £ ¼ © and so on. I alredy searched for a solution: I should use wchar_t* or stringw for the filenames. However, the giv...
by freetimecoder
Fri Apr 22, 2011 5:20 pm
Forum: Beginners Help
Topic: std::vector cleanup problem? (c++, not irrlicht related)
Replies: 10
Views: 711

Ah, that explains it. Usually it makes sense but I need to clean the vectors moemory completley so my solution seems acceptable.

Thanks for the help :)
by freetimecoder
Fri Apr 22, 2011 4:03 pm
Forum: Beginners Help
Topic: std::vector cleanup problem? (c++, not irrlicht related)
Replies: 10
Views: 711

Yea that would make sens, however instead of using old memory again my programm just uses more memory :( I can't show the actual code, since it is for a competition. But at least I now have a way to keep memory usage down. I found the answer when trying to envelop the vector in an {} block. Upon com...
by freetimecoder
Fri Apr 22, 2011 3:37 pm
Forum: Beginners Help
Topic: std::vector cleanup problem? (c++, not irrlicht related)
Replies: 10
Views: 711

Hm right. The memory at the end stays the same, but I still do not know why it is so much. When I use the vector within another {} the memory amount is ok because the vector is completly deleted, but shouldn't the emptied vector use the same memory like on creation?

greetings
by freetimecoder
Fri Apr 22, 2011 3:21 pm
Forum: Beginners Help
Topic: std::vector cleanup problem? (c++, not irrlicht related)
Replies: 10
Views: 711

No debug or release modes change nothing.
I edited the code above, forgot to include cstdlib and added a cin.get at the end so the programm does not just terminate. After the programm ends everything is cleaned up right, but before that the memory is still occupied.

greetings
by freetimecoder
Fri Apr 22, 2011 2:46 pm
Forum: Beginners Help
Topic: std::vector cleanup problem? (c++, not irrlicht related)
Replies: 10
Views: 711

std::vector cleanup problem? (c++, not irrlicht related)

Hi, I have a problem and I have been trying to solve it for quite a while :( I use a simple std::vector to store pointers to objects. But when I want to delete the objects I have to much ram usage left over. When I start the programm it uses 328 K ram. When the objects are created it uses 2.448 K an...
by freetimecoder
Sat Mar 26, 2011 11:36 am
Forum: Beginners Help
Topic: Basic Mouse Movement
Replies: 15
Views: 1084

The IrrlichtDevice calls the OnEvent function of an IEventReceiver. You have to set your custom receiver when creating the device or with the ->setEventReceiver function of the device. Then Irrlicht will call the OnEvent function of this receiver in case something happens. If your receiver has proce...
by freetimecoder
Fri Mar 25, 2011 8:15 pm
Forum: Everything 2d/3d Graphics
Topic: Interesting 3D images and videos (Not necesarilly Irrlicht)
Replies: 96
Views: 22566

Then shame to you for not posting this :P ;)
Nah, I have been following this for quite a while, too, but I rembered this when browsing my bookmarks.

greetings
by freetimecoder
Fri Mar 25, 2011 9:24 am
Forum: Everything 2d/3d Graphics
Topic: Interesting 3D images and videos (Not necesarilly Irrlicht)
Replies: 96
Views: 22566

Long Video - definetly worth it:
http://www.youtube.com/watch?v=fO7XhaTGDYg

Acording to the info on their site, most of it is procedurally created along the way as the player goes.

greetings