Project Declension 2008 (Yes! Crepuscular rays)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Alright, demo is available at the first page!
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Is physics independent of frame rate? Boxes seem to move really quick when there are few and very slow when there are many.
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

No, it's framerate dependent. I've tried using a timer, but newton will crash if there's too much boxes, not sure why thought. Try putting vsync on, at 60/75fps physics should update alright.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Hi, I've checked your demo. Your room is very tiny and you could have applied collision to the player. But the display quality of what you've made look great.

(BTW, This demo is not running at all if you don't have support for shaders V2. My video card was broken and I used your demo to check that my replaced card worked correctly)

Your player object is in 2 parts? (Legs and arm?) I would like to do something similar... How is your player object setuped? (body)

There some "missing textures" reported when I start the application. Here is the full log of the windows that I had:
=========================Project Declension Engine v1003========================

Irrlicht.NET CP v0.9.0.0 running
Irrlicht Engine version 1.4
Microsoft Windows XP Professional Service Pack 2 (Build 2600)
Using renderer: Direct3D 9.0
NVIDIA GeForce 7600 GS nv4_disp.dll 6.14.10.9424
Loaded texture: tex/mask.png
Loaded texture: tex/noise_n.png
Could not get lower surface level for mip map generation
Loaded texture: tex/skydome.jpg
Unknown data object in animation of .x file: Header
Loaded mesh: mdl/cube.x
Unknown data object in animation of .x file: Header
Could not open file of texture: table.jpg
Loaded texture: mdl/table.jpg
Loaded mesh: mdl/table.x
Unknown data object in animation of .x file: Header
Could not open file of texture: chairmat.jpg
Loaded texture: mdl/chairmat.jpg
Could not open file of texture: chair1.png
Loaded texture: mdl/chair1.png
Loaded mesh: mdl/chair.x
Unknown data object in animation of .x file: Header
Loaded mesh: mdl/vase.x
Unknown data object in animation of .x file: Header
Loaded mesh: mdl/ccube.x
Unknown data object in animation of .x file: Header
Could not open file of texture: orange512.jpg
Loaded texture: mdl/orange512.jpg
Loaded mesh: mdl/shelf.x
Could not open file of texture: dots.jpg
Loaded texture: mdl/dots.jpg
Could not open file of texture: 7.png
Could not open file of texture: mdl/7.png
Could not load a texture for entry in 3ds file: 7.png
Could not open file of texture: 7.png
Could not open file of texture: mdl/7.png
Could not load a texture for entry in 3ds file: 7.png
Could not open file of texture: 7.png
Could not open file of texture: mdl/7.png
Could not load a texture for entry in 3ds file: 7.png
Could not open file of texture: digital.png
Loaded texture: mdl/digital.png
Loaded mesh: mdl/digital.3ds
Could not open file of texture: plant1.png
Loaded texture: mdl/plant1.png
Loaded mesh: mdl/plant1.3ds
Loaded texture: mdl/plant1_n.png
Loaded texture: cafeteria/dirt.jpg
Loaded texture: mdl/fern.png
Loaded texture: mdl/fern_n.png
Could not open file of texture: cafeteria/light.bmp
Could not open file of texture: cafeteria/none.bmp
Could not open file of texture: cafeteria/woodchip.jpg
Loaded texture: cafeteria/plastic.jpg
Could not open file of texture: cafeteria/filter.jpg
Could not open file of texture: cafeteria/grass.jpg
Could not open file of texture: cafeteria/door.jpg
Could not open file of texture: cafeteria/sign.jpg
Loaded texture: cafeteria/Tree.jpg
Loaded texture: cafeteria/Garden.jpg
Loaded texture: cafeteria/Forest.jpg
Loaded texture: cafeteria/frame.jpg
Loaded texture: cafeteria/seat.jpg
Could not open file of texture: cafeteria/orange.jpg
Could not open file of texture: cafeteria/wall2.jpg
Could not open file of texture: cafeteria/tile2.jpg
Loaded texture: cafeteria/metal.jpg
Could not open file of texture: cafeteria/cell.jpg
Could not open file of texture: cafeteria/pillar.jpg
Could not open file of texture: cafeteria/wall.jpg
Could not open file of texture: cafeteria/tile.jpg
Loaded texture: cafeteria/metal1.jpg
Could not open file of texture: cafeteria/1.BMP
Loaded mesh: cafeteria/cafeterialm.b3d
Could not open file of texture: woodchip.jpg
Could not open file of texture: cafeteria/woodchip.jpg
Could not load a texture for entry in 3ds file: woodchip.jpg
Could not open file of texture: filter.jpg
Could not open file of texture: cafeteria/filter.jpg
Could not load a texture for entry in 3ds file: filter.jpg
Could not open file of texture: filter.jpg
Could not open file of texture: cafeteria/filter.jpg
Could not load a texture for entry in 3ds file: filter.jpg
Could not open file of texture: grass.jpg
Could not open file of texture: cafeteria/grass.jpg
Could not load a texture for entry in 3ds file: grass.jpg
Could not open file of texture: door.jpg
Could not open file of texture: cafeteria/door.jpg
Could not load a texture for entry in 3ds file: door.jpg
Could not open file of texture: sign.jpg
Could not open file of texture: cafeteria/sign.jpg
Could not load a texture for entry in 3ds file: sign.jpg
Could not open file of texture: Tree.jpg
Could not open file of texture: Garden.jpg
Could not open file of texture: Forest.jpg
Could not open file of texture: frame.jpg
Could not open file of texture: seat.jpg
Could not open file of texture: orange.jpg
Could not open file of texture: cafeteria/orange.jpg
Could not load a texture for entry in 3ds file: orange.jpg
Could not open file of texture: wall2.jpg
Could not open file of texture: cafeteria/wall2.jpg
Could not load a texture for entry in 3ds file: wall2.jpg
Could not open file of texture: tile2.jpg
Could not open file of texture: cafeteria/tile2.jpg
Could not load a texture for entry in 3ds file: tile2.jpg
Could not open file of texture: metal.jpg
Could not open file of texture: cell.jpg
Could not open file of texture: cafeteria/cell.jpg
Could not load a texture for entry in 3ds file: cell.jpg
Could not open file of texture: pillar.jpg
Could not open file of texture: cafeteria/pillar.jpg
Could not load a texture for entry in 3ds file: pillar.jpg
Could not open file of texture: wall.jpg
Could not open file of texture: cafeteria/wall.jpg
Could not load a texture for entry in 3ds file: wall.jpg
Could not open file of texture: tile.jpg
Could not open file of texture: cafeteria/tile.jpg
Could not load a texture for entry in 3ds file: tile.jpg
Could not open file of texture: metal1.jpg
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Found no matching material for Group in 3ds file.
Loaded mesh: cafeteria/cafeteria_lowpoly.3ds
Unknown data object in animation of .x file: Header
Could not open file of texture: soldierd.jpg
Could not open file of texture: mdl/soldierd.jpg
Could not open file of texture: soldierd.jpg
Loaded mesh: mdl/soldier_cinematic.x
Loaded texture: mdl/soldier_ds.png
Loaded texture: mdl/soldiern.png
Loaded texture: cafeteria/env.jpg
Unknown data object in animation of .x file: Header
Could not open file of texture: soldierd.jpg
Could not open file of texture: mdl/soldierd.jpg
Could not open file of texture: soldierd.jpg
Could not open file of texture: soldierd.jpg
Could not open file of texture: mdl/soldierd.jpg
Could not open file of texture: soldierd.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: mdl/glock.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: mdl/glock.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: mdl/glock.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: glock.jpg
Could not open file of texture: mdl/glock.jpg
Could not open file of texture: glock.jpg
Loaded mesh: mdl/glock.x
Loaded texture: cafeteria/orange.png
Loaded texture: cafeteria/orange_n.png
Loaded texture: cafeteria/filter2.png
Loaded texture: cafeteria/filter_n2.png
Loaded texture: cafeteria/filter_ds.png
Loaded texture: cafeteria/filter_n.png
Loaded texture: cafeteria/grass_ds.png
Loaded texture: cafeteria/grass_n2.png
Loaded texture: cafeteria/water_n.png
Loaded texture: cafeteria/door_ds.png
Loaded texture: cafeteria/door_n.png
Loaded texture: cafeteria/sign_ds.png
Loaded texture: cafeteria/sign_n.png
Loaded texture: cafeteria/null_n.jpg
Loaded texture: cafeteria/frame_n.jpg
Loaded texture: cafeteria/seat_n.png
Loaded texture: cafeteria/wall2_ds.png
Loaded texture: cafeteria/wall2_n.png
Loaded texture: cafeteria/tile2_ds.png
Loaded texture: cafeteria/tile2_n.jpg
Loaded texture: cafeteria/cell_ds.png
Loaded texture: cafeteria/pillar_ds.png
Loaded texture: cafeteria/pillar_n2.png
Loaded texture: cafeteria/wall_ds.png
Loaded texture: cafeteria/wall_n.jpg
Loaded texture: cafeteria/dirt2.jpg
Loaded texture: cafeteria/tile_ds.png
Loaded texture: cafeteria/tile_n.png
Loaded texture: mdl/glock_ds.png
Loaded texture: mdl/glock_n.png
Loaded texture: cafeteria/lm.jpg
Loaded texture: mdl/table_ds.png
Loaded texture: mdl/table_n.png
Loaded texture: mdl/chairmat.png
Loaded texture: mdl/chairmat_n.png
Loaded texture: mdl/chair1_n.png
Loaded texture: mdl/volnoise.jpg
Loaded texture: mdl/orange512_n.png
Loaded texture: mdl/dots_n.png
Loaded texture: tex/digital/8.png
Loaded texture: tex/light.png
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Thanks for testing it out.

I think i setup the legs by simple attaching it as a child of the camera. Then in the loop, I rotated it around the x-axis in the opposite direction of the camera's so that it'll look upright even when you're looking down:

Code: Select all

playernode.Rotation = new Vector3D(-camera.Rotation.X, 0, 0);
The camera is placed about the neck position. Quite a simple trick, and yes, the arms and the body are seperate meshes.

I'd like to add collision to player too, but I'm using a very old version of newton wrapper which I can't seem to find an upvector pin to keep my player-sphere upright.

I think they are fine, as long nothing looks too out of place. I loaded the mesh's textures from code rather than use the ones assigned from my modelling software, and hence the errors.

I think shader 2.0 only works on this without postprocessing. With the latter on, the minimum required is 2.0a. The version of IrrCP has a bug thus I can't use PS3.0.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Thanks for the info about the way the player meshes are setuped. I will surely build my own to try it out (Should have a 3DS course for animation for the next month (may-june))

That will permit me to try it. (I've already installed the latest .B3D mesh exporter and it seem to work fine).

You can't use the basic camera collision system from IRRlicht? (Occtree?)
This is really simple to setup. (This is related to your use of Newton?)
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

An update, check out the first post!
Nicholas
Posts: 8
Joined: Sun Nov 27, 2005 1:16 am

Post by Nicholas »

The demo crashes?

Code: Select all

Declension Engine initialized
Irrlicht.NET CP v0.9.0.0 running
System.BadImageFormatException: An attempt was made to load a program with an in
correct format. (Exception from HRESULT: 0x8007000B)
   at IrrlichtNETCP.IrrlichtDevice.CreateDevice(DriverType type, Int32[] dim, In
t32 bits, Boolean full, Boolean stencil, Boolean vsync, Boolean antialias)
   at IrrlichtNETCP.IrrlichtDevice..ctor(DriverType type, Dimension2D dim, Int32
 bits, Boolean fullscreen, Boolean stencil, Boolean vsync, Boolean antialias)
   at Project_Declension.Engine..ctor() in C:\Users\Jing Quan\Documents\Visual S
tudio 2008\Projects\Project Declension 2008\Project Declension 2008\Engine.cs:li
ne 113
If you won't port your game to X platform, release the source code and let someone else do it. There is no reason to have only Windows support when all the libraries you need for your game are cross-platform.
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

It's working fine right out of the zip. Never seen that error before but I think it just might be a problem with loading images that are not supported? Anything you've changed in the files?
Nicholas
Posts: 8
Joined: Sun Nov 27, 2005 1:16 am

Post by Nicholas »

I haven't changed anything. I only extracted it.
If you won't port your game to X platform, release the source code and let someone else do it. There is no reason to have only Windows support when all the libraries you need for your game are cross-platform.
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

I downloaded it and it works fine, same for everyone else. What's your system spec? This requires a graphics card with minimum pixelshader 2.0a.
Nicholas
Posts: 8
Joined: Sun Nov 27, 2005 1:16 am

Post by Nicholas »

jingquan wrote:I downloaded it and it works fine, same for everyone else. What's your system spec? This requires a graphics card with minimum pixelshader 2.0a.
Windows XP Professional x64 Edition SP2 (all available updates installed)
AMD Athlon 64 X2 Dual Core 3800+ 2.01 GHz
1 GB RAM
NVIDIA GeForce 7600GT (supports Pixel Shader 3.0)
NVIDIA Drivers 169.21 (I'll upgrade to the latest version, 175.16, and come back and edit this post)
Edit: I updated forceware to 175.16 and restarted, though the problem still remains.
If you won't port your game to X platform, release the source code and let someone else do it. There is no reason to have only Windows support when all the libraries you need for your game are cross-platform.
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Hey Nicholas, I'm sorry I don't know what's wrong with the game on your PC, could be a missing d3dx9_36.dll but I'm just guessing. Install the latest DirectX End-User Runtime ( http://www.microsoft.com/downloads/deta ... laylang=en ) or simply the dll ( http://www.dll-files.com/dllindex/dll-f ... l?d3dx9_36 ) and put it in your System32 folder.

A bit of updates, check it out in the first page.
Nicholas
Posts: 8
Joined: Sun Nov 27, 2005 1:16 am

Post by Nicholas »

That didn't work. :( I can play TES4: Oblivion, Rainbow Six: Vegas, STALKER: Shadow of Chernobyl, but not this, and I re-downloaded the zip but I have the same error.
If you won't port your game to X platform, release the source code and let someone else do it. There is no reason to have only Windows support when all the libraries you need for your game are cross-platform.
jingquan
Posts: 222
Joined: Sun Aug 20, 2006 4:10 am
Contact:

Post by jingquan »

Ah, then there' something wrong with the engine, meanwhile you can try this on another system.

Alright! Added some new lighting effect which will obviously need some work. Updates in the first post. I'd like to hear some feedbacks about the "god ray". Thanks.
Post Reply