Bullet marks on wall

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

I implemented decal clipping for Lightfeather, if it would be helpful for anyone working on it here you can see my source at http://lightfeather.de/cgi-bin/hg/light ... lModel.cpp
Algorithm taken from an old article in Game Programming Gems 2 "Applying Decals to Arbitrary Surfaces". It's nothing terribly special (not like the link posted to the "high dynamic surfaces"). Just create extra planar geometry for the decal and if a triangle list is provided, clip it to all those triangles. Ideally you'd have an outside method of selecting the relevant triangles, otherwise clipping is very slow
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Is there any updates on this? Would really good that we could use decals!
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

hey

Post by netpipe »

does anyone have a demo that a person can just compile ? i really want bullet marks but cant seem to put something together.
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

Image

http://www.xup.in/dl,17813176/decals.7z/

fully working 1.7 demo of this, Thanks Armen! :)
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

updated.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Post by ACE247 »

Ive just run the demo and it doesnt work for me. I just get a Linker error.

Code: Select all

1>decalscenenode.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class irr::video::SMaterial irr::video::IdentityMaterial" (__imp_?IdentityMaterial@video@irr@@3VSMaterial@12@A)
1>main.obj : error LNK2019: unresolved external symbol __imp__createDevice referenced in function _main
It looks simple but I cant get it too work. Any idea whats to blame?
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

try removing my paths from the search directory's and some of the linux includes in build options the target was for linux.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Seems like you're using an old version of Irrlicht. IdentityMaterial exists for some versions already. Just update to a more recent version and it should compile.
ACE247
Posts: 704
Joined: Tue Mar 16, 2010 12:31 am

Post by ACE247 »

Its Irrlicht 1.7.1!! How can it not compile. :?
Edit: I fixed it, just added the #ifdef windows etc and pragma comment lib story to the code.
Last edited by ACE247 on Thu Oct 28, 2010 2:25 am, edited 1 time in total.
Post Reply