Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / how can I get the camera's transformation matrix

Author
Message
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Oct 2010 01:58
My goal is to make billboards (allways facing the camera) for particles. Normally I would use planes and "point" them at the camera. This is not efficient if I have sever hundred or more. I would instead prefer to use a large vertex buffer and align all the planes manually (it would be faster).

Does anyone know how to get a pointer to the d3ddevice and it's subsequent data like the camera's tranformation matrix?

The fastest code is the code never written.
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 8th Oct 2010 05:05
dbGetViewMatrix( camId ) * dbGetProjectionMatrix( camId )

dbGetDirect3DDevice()

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Oct 2010 05:17
None of those are in the Dark GDK help file. I know I searched.... Is there a better (more complete) help file?

By the way, thanks! Those will be useful.

The fastest code is the code never written.
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 8th Oct 2010 05:26
Just search the header files.

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Oct 2010 05:45
Is that what you have to do? Man, that sucks!

The fastest code is the code never written.
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 8th Oct 2010 05:47
Thats what I do for physics, say I need something for collision I open the header then Ctrl + F and type collision

I want coke, not Pepsi!
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 8th Oct 2010 05:52
I love DGK so far, but the lack of documentation is a bit frustrating. It makes me ask stupid questions on a forum that few people post frequently. Can the two of you have a look at my "Particle problems":
http://forum.thegamecreators.com/?m=forum_view&t=176507&b=22

The fastest code is the code never written.
CocaCola
14
Years of Service
User Offline
Joined: 23rd Mar 2010
Location: CocaCola.x CocaCola.y CocaCola.z
Posted: 8th Oct 2010 06:37
Well I know nothing about particles, sorry.

I want coke, not Pepsi!

Login to post a reply

Server time is: 2024-06-30 11:13:54
Your offset time is: 2024-06-30 11:13:54