Simple projects, but useful (OpenGL) [Updated: 12-01-2010]

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

I had been ignoring this post in code snippets because I misinterpreted the title as being examples on extending the OpenGL part or Irrlicht, not awesome shaders! These all look very helpful, and I hope to learn from them! Thanks!

~DtD
Viz_Fuerte
Posts: 91
Joined: Sun Oct 19, 2008 5:29 pm
Location: Valencia (Spain)
Contact:

Post by Viz_Fuerte »

DtD
I had been ignoring this post in code snippets because I ...
I could think of another title more appealing :lol:
Virion
man you're quick!
I had made earlier projects (Some examples)

This demonstrates that Irrlicht have much more power and simplicity than other 3D engines.

PD: I run out of ideas :twisted:
PI
Posts: 176
Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary

Post by PI »

Me want. All. Now! :shock: Great stuff man! Keep'em going, eye candy. An idea (would be great for me, muhaha) bump mapping with specular AND with self-illuminated parts (for sci-fi scenes). Btw, how about porting them to D3D? :D
Viz_Fuerte
Posts: 91
Joined: Sun Oct 19, 2008 5:29 pm
Location: Valencia (Spain)
Contact:

Post by Viz_Fuerte »

PI:
...how about porting them to D3D?
Sorry, but the projects are made in OpenGL and ARB, because I understand.
In addition, are projects, is for to give an idea of how you have to do to create.

I also have a "i know not that" with DirectX (I do not like, nothing, nothing :twisted: )

Edit: I did a project with Normal+Specular Mapping, but now I can not show (I'm finishing).

:wink:
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

I may be porting these to Cg (Which can be compiled to Dx or Ogl or used directly with IrrCg) if I use them in my project.

~DtD
Viz_Fuerte
Posts: 91
Joined: Sun Oct 19, 2008 5:29 pm
Location: Valencia (Spain)
Contact:

Post by Viz_Fuerte »

The problem is also in CG, that language is almost like the HLSL (D3D).

But so bad is that this in OpenGL? :shock:
I did it on purpose in ARB (assembly), because it was more compatible in cards ATI and NVIDIA, and fast.

I do not accept changes !!!!!!!!!!! :lol:
Image
PI
Posts: 176
Joined: Tue Oct 09, 2007 7:15 pm
Location: Hungary

Post by PI »

No, it's really cool that you make them in assembly! I'd just like to have them for D3D also. Plus I need self-illuminated parts. And fog on them. Hehe :roll: But I guess it'll better when I have something serius to show off from my project, I'll recruit people for shader writing :)
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

lol, I hadn't noticed that they were in assembly (Hadn't taken the time to review any of the shaders' internals yet) I had seen you mention ARB but I didn't know that was assembly.

DirectX tends to run much faster on ATI cards in my experience, and some stuff just likes certain cards better. One of the most appealing features of Irrlicht for me is the ability to give my end-user the choice of video renderers.

~DtD
Viz_Fuerte
Posts: 91
Joined: Sun Oct 19, 2008 5:29 pm
Location: Valencia (Spain)
Contact:

Post by Viz_Fuerte »

I hadn't noticed that they were in assembly
:x You have to look all, when you use something.!!! :lol:

My graphics card is ATI and the truth, i know that Nvidia-> like ->OpenGL and ATI-> like-> DirectX.
...to give my end-user the choice of video renderers.
The truth is that Irrlicht earn much at that point, but if a user knows how to program in GLSL or ARB, the program in GLSL or ARB.
psychophoniac
Posts: 101
Joined: Wed Dec 03, 2008 5:33 pm
Location: ger

Post by psychophoniac »

hey, looks nice on screens...
but none of the exe's run on my laptop...
specs are:
intel centrino 2, 2,2Ghz; 4Gb ram, GeForce 9600 mgt plus windows 7 Prof. 64 bit.

greets psy
i love skateboarding!
Viz_Fuerte
Posts: 91
Joined: Sun Oct 19, 2008 5:29 pm
Location: Valencia (Spain)
Contact:

Post by Viz_Fuerte »

Well, it's strange (but not impossible).

I also have a laptop, and they see something bad about the graphics card, but it works:

Conf laptop:
- Inter dual core 1,6ghz
- intel mobile ... 368 mb (GLSL Not supported) :(
- 2 gb ram
- Winsh*t vista 32bits

Conf PC:
- Pentium 4 HT 3,6ghz
- ATI readon x1650 PRO 512Mb PCIexpress
- 2 Gb ram
- Winsh*t XP 32bits

Though not work properly the executable, if they work the codes.
Edit: I changed the Irrlicht library, for use only the essentials.
DtD
Posts: 264
Joined: Mon Aug 11, 2008 7:05 am
Location: Kansas
Contact:

Post by DtD »

Viz_Fuerte wrote: :x You have to look all, when you use something.!!! :lol:
I was going to look at it eventually =P

~DtD
uniqs
Posts: 7
Joined: Wed Jan 06, 2010 4:05 am

Hi,can you please give me the media needed?

Post by uniqs »

I am seeking for some really easy examples to learn Irrlicht engine,because i just like to create a chinese-chess game.From animations to coding,because I just favor the chinese-chess~~.
Can you please show me the version of irrlicht you used or give me the media/scene.b3p file??Thank you!
uniqs
Posts: 7
Joined: Wed Jan 06, 2010 4:05 am

Oh I get it,the media is in the exe.zip~~

Post by uniqs »

As the title,I get it~~
Thank you very much!
uniqs
Posts: 7
Joined: Wed Jan 06, 2010 4:05 am

Why can't find media????

Post by uniqs »

I tried several ways,but failed...I myself can find the media,,,but the computer just can't :roll:
This is my result when running using the cmd on windows:
Irrlicht Engine version 1.6
Microsoft Windows XP Professional Service Pack 2 (Build 2600)
Using renderer: OpenGL 1.4.0
Intel Bear Lake B: Intel
OpenGL driver version is 1.2 or better.
GLSL not available.
Could not load texture: courier.dds
Unable to load all textures in the font, aborting
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
Could not load texture: media/glow.dds
read ChunkTEXS
read Texture: grate.dds
Flags: 1
Blend: 2
read Texture: Tx_imp_wall_01_small.dds
Flags: 1
Blend: 2
read Texture: StoneWall_1-4.dds
Flags: 1
Blend: 2
read Texture: glow_test02.dds
Flags: 1
Blend: 2
read Texture: 990tires.dds
Flags: 1
Blend: 2
read ChunkBRUS
read Material
Blend: 1
FX: 0
Layer: 0
using texture: grate.dds
read Material
Blend: 1
FX: 0
Layer: 0
using texture: Tx_imp_wall_01_small.dds
read Material
Blend: 1
FX: 0
Layer: 0
using texture: StoneWall_1-4.dds
read Material
Blend: 1
FX: 0
Layer: 0
using texture: glow_test02.dds
read Material
Blend: 1
FX: 0
Layer: 0
using texture: 990tires.dds
read ChunkNODE: ROOT
read ChunkMESH
read ChunkVRTS
read ChunkTRIS
Could not load texture: D:\irrlicht-1.6\ppl_sc\ttt\debug\media/StoneWall_1-4.dds

read ChunkTRIS
Could not load texture: D:\irrlicht-1.6\ppl_sc\ttt\debug\media/Tx_imp_wall_01_sm
all.dds
read ChunkTRIS
Could not load texture: D:\irrlicht-1.6\ppl_sc\ttt\debug\media/grate.dds
read ChunkTRIS
Could not load texture: D:\irrlicht-1.6\ppl_sc\ttt\debug\media/990tires.dds
read ChunkTRIS
Could not load texture: D:\irrlicht-1.6\ppl_sc\ttt\debug\media/990tires.dds
read ChunkTRIS
Could not load texture: D:\irrlicht-1.6\ppl_sc\ttt\debug\media/990tires.dds
read ChunkANIM
Loaded mesh: media/scene.b3d

and this is your program outputs:
Irrlicht Engine version 1.6
Microsoft Windows XP Professional Service Pack 2 (Build 2600)
Using renderer: OpenGL 1.4.0
Intel Bear Lake B: Intel
OpenGL driver version is 1.2 or better.
GLSL not available.
Error: Could not load built-in Font. Did you compile without the BMP loader?
DDS : ECF_DXT5 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\courier.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\glow.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\block08d_diffuse.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\block08d_normal.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\victoria.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\victoria_normal.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\brick_diffuse.dds
DDS : ECF_DXT3 format
Loaded texture: E:\Softwares\irrStudy\PPL_EXE\media\brick_normal.dds
Loaded mesh: media/scene.b3d

I really don't know why..I changed all the path names to lower-case alphabeta,but still can't find...I moved the media and shadow folder to the exe path.The uncertain thing is that whether my OpenGL is not suitable..Or my irrlicht is not suitable...
I know,your irrlicht.dll is only 992KB,but mine is 4.08M and when replaced by my dll,your program get the same result as mine^_^...Wonderring why~~~
Post Reply