Search found 37 matches

by kiel814
Tue May 12, 2015 11:08 pm
Forum: Beginners Help
Topic: Export mesh as .obj
Replies: 2
Views: 681

Re: Export mesh as .obj

Awesome!
Added a GetMesh() method to my scene node that creates the mesh on the fly.

Thanks a lot!
by kiel814
Tue May 12, 2015 8:03 pm
Forum: Beginners Help
Topic: Export mesh as .obj
Replies: 2
Views: 681

Export mesh as .obj

I used the CustomSceneNode example to create a... well... a custom scene node. My question is: Is it possible to export a such a scene node to a file like .obj or similar format, so that I can open it with 3DStudio/Blender or some other 3D editing software? At least for now, I'm not interested in ex...
by kiel814
Thu Oct 30, 2014 8:50 pm
Forum: Beginners Help
Topic: Multiple windows (launcher + game)
Replies: 2
Views: 398

Re: Multiple windows (launcher + game)

I got it to work. I don't know exactly why (not that I care much), but it should be done like this. With the closeDevice inside the loop:     IrrlichtDevice* device = createDevice(EDT_OPENGL, dimension2d<u32>(512, 384));     device->setWindowCaption(L"Launcher");     IVideoDriver* driver =...
by kiel814
Thu Oct 30, 2014 6:23 pm
Forum: Beginners Help
Topic: Multiple windows (launcher + game)
Replies: 2
Views: 398

Multiple windows (launcher + game)

Hi, I want to create a launcher window for a game I'm starting to develop. The idea is to have a window show up when the program is launched, where you can set the screen size, choose windowed or fullscreen, etc, then you click a play button and the game is launched with the selected settings. So I ...
by kiel814
Fri Mar 01, 2013 2:35 pm
Forum: Beginners Help
Topic: [SOLVED] VS2010 project from scratch
Replies: 3
Views: 628

Re: VS2010 project from scratch

Got it to work. What I was missing was to copy C:\irrlicht-1.8\bin\Win32-VisualStudio\Irrlicht.dll to the project folder. And this directive was indeed necessary: #ifdef _IRR_WINDOWS_ #pragma comment(lib, "Irrlicht.lib") #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartu...
by kiel814
Fri Mar 01, 2013 2:14 am
Forum: Beginners Help
Topic: [SOLVED] VS2010 project from scratch
Replies: 3
Views: 628

[SOLVED] VS2010 project from scratch

Hi, I want to create a VS2010 Irrlicht project from scratch outside the irrlicht folder. I extracted irrlicht 1.8 to C:\irrlicht-1.8 I created a new project in C:\repos\test\test.vcxproj It is an empty console project I went to Project > Properties > Configuration Properties > VC++ Directories and a...
by kiel814
Wed Nov 09, 2011 3:52 pm
Forum: Beginners Help
Topic: minimap
Replies: 2
Views: 326

minimap

I would like to show a minimap image of my scene.
It should be done in realtime since the map is randomly generated.

I tried drawing a very small image for every tile of my map. But this slowed the game to less than 5 FPS.

Any ideas on how should I do it?
by kiel814
Wed Oct 26, 2011 10:41 pm
Forum: Beginners Help
Topic: 2D image mirroring
Replies: 7
Views: 3206

Re: 2D image mirroring

Here's my code. void Animation::draw2DImage(IVideoDriver *driver, ITexture* texture,         rect<s32> sourceRect,         position2d<s32> position,         position2d<s32> rotationPoint,         f32 rotation,         vector2df scale,         bool useAlphaChannel,         SColor color) {         SMa...
by kiel814
Wed Oct 26, 2011 7:33 pm
Forum: Off-topic
Topic: help with PM
Replies: 2
Views: 842

Re: help with PM

Thanks :)
by kiel814
Wed Oct 26, 2011 2:36 pm
Forum: Off-topic
Topic: help with PM
Replies: 2
Views: 842

help with PM

Sorry if this is not the correct board to post this.

I tried to send a PM, but now it is in the "Outbox" folder, marked as "Sent: Tue Oct 25, 2011 10:40 pm"
Shouldn't it be in the "Sent messages" folder?
Was my message sent or not?

Regards!
by kiel814
Wed Oct 26, 2011 12:15 am
Forum: Code Snippets
Topic: Screen fade out effects for transitions
Replies: 6
Views: 2778

Re: Screen fade out effects for transitions

Hey Sullivan! Back when I was writing games for a living, I used the "black rectangle" technique more than once. It may be a little primitive, but it's simple and effective. And I'm sure there are other commercial games out there using it (not only the ones made by me). The simplest answer...
by kiel814
Tue Oct 25, 2011 11:56 pm
Forum: Code Snippets
Topic: 2D images with rotation
Replies: 43
Views: 29888

Re: 2D images with rotation

I started developing a 2D game and I wanted to flip characters horizontally without having to have 2 images of every character (looking to the right and looking to the left). I thought that the code in this post would do the trick if I used negative values for the scale. At first it didn't, but afte...
by kiel814
Tue Oct 25, 2011 11:43 pm
Forum: Beginners Help
Topic: 2D image mirroring
Replies: 7
Views: 3206

Re: 2D image mirroring

I finally solved this issue using some code from Lonesome Ducky: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=32388&start=15 My idea was to use negative scale values in order to flip the image. Initially it didn't work. But after some trial an error, accidentally I figured that ...
by kiel814
Tue Oct 25, 2011 3:17 am
Forum: Beginners Help
Topic: 2D image mirroring
Replies: 7
Views: 3206

Re: 2D image mirroring

Tried that.
Didn't work.

Thanks anyway ;)
by kiel814
Sun Oct 23, 2011 10:33 pm
Forum: Beginners Help
Topic: 2D image mirroring
Replies: 7
Views: 3206

Re: 2D image mirroring

Oh... forgot to say I am using this to render the character:

rect<s32> sprite(currentFrame * size.X, 0, (currentFrame + 1) * size.X - 1, size.Y - 1);
driver->draw2DImage(image, position, sprite, 0, SColor(255, 255, 255, 255), true);