Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned)
Axial billboard (axis aligned) Axial billboard (axis aligned)
Axial billboard (axis aligned)
Go Back  Xtreme Visual Basic Talk > > > > Axial billboard (axis aligned)


Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2006, 01:07 AM
Agwan's Avatar
Agwan Agwan is offline
Freshman
 
Join Date: Nov 2005
Location: Australia
Posts: 45
Angry Axial billboard (axis aligned)


Hello my name is daniel and I am currently writing a game and wish to use lasers, object trails and shadows (in that order). If any of those could be explained that would be realy helpful. But at the moment what I realy want to do is the billboards.

Here's the problem...
I need to have a billboard that can be rotated around and axis (like one defines from a vector eg: (12,2,23) Yes it would be normalized) a length and start base(start) position would also need to be used. The end relut I want is to specify two positions, a width and the camera position so it can be adusted to face the camera. Does anyone know how I could do this?

PS. Using VB.net VS 2005 and DirectX9c
__________________
Agwan - EXtremeSolutions
Reply With Quote
  #2  
Old 03-25-2006, 06:53 AM
Leade's Avatar
Leade Leade is offline
Junior Contributor
 
Join Date: Jul 2005
Location: Wherever i fall over
Posts: 222
Cool Bilboards no, shadows yes!

Quote:
Originally Posted by Agwan
Hello my name is daniel and I am currently writing a game and wish to use lasers, object trails and shadows (in that order). If any of those could be explained that would be realy helpful. But at the moment what I realy want to do is the billboards.

Here's the problem...
I need to have a billboard that can be rotated around and axis (like one defines from a vector eg: (12,2,23) Yes it would be normalized) a length and start base(start) position would also need to be used. The end relut I want is to specify two positions, a width and the camera position so it can be adusted to face the camera. Does anyone know how I could do this?

PS. Using VB.net VS 2005 and DirectX9c
Well i can't help you on bilbords cos i'm still working on it my self, i can help you on how to do shadows. How far have you come with the shadows yourself?
__________________
Fact: The best ideas come when your smashed of your face. So drink beer and be merry!!!
Reply With Quote
  #3  
Old 03-25-2006, 03:22 PM
Agwan's Avatar
Agwan Agwan is offline
Freshman
 
Join Date: Nov 2005
Location: Australia
Posts: 45
Default Shadows

Quote:
Originally Posted by Leade
Well i can't help you on bilbords cos i'm still working on it my self, i can help you on how to do shadows. How far have you come with the shadows yourself?
Not very far I have looked at some examples but find them difficult to understand, what i'm looking at though is useing vhadow volumes to cast shadows on terrain.

What have you done on billboards?
__________________
Agwan - EXtremeSolutions
Reply With Quote
  #4  
Old 03-27-2006, 01:57 AM
AdrianDeAngelis's Avatar
AdrianDeAngelis AdrianDeAngelis is offline
Contributor
 
Join Date: May 2005
Location: Australia
Posts: 549
Default

I have done some basic z-axis aligned billboards which are pretty easy. What you want however is an arbitrary axis aligned billboard... This article has the solution you are looking for.

http://nehe.gamedev.net/data/article...asp?article=19

DX9 uses a left handed co-ordinate system, this solution uses a right hande co-ordinate system... you'll have to adjust for that
__________________
Automation error... What do you mean automation error you %#@*&!$ thing!

Star Admiral: 3D tactical space sim *** New Version 0.38 10/01/09 ***
Damage, shields and special weapons systems
Reply With Quote
  #5  
Old 03-27-2006, 03:49 PM
Iceplug's Avatar
IceplugAxial billboard (axis aligned) Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

D9.Transform.Projection = Matrix.PerspectiveFovLH(PiThird, 1.0F, 0.1F, 5000.0F)
D9.Transform.View = Matrix.LookAtLH(Camera, FocusPt, CamNormal)
Change the LH to RH to make it a right-hand coordinate system.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #6  
Old 03-28-2006, 12:07 AM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

Having not used billboards myself, I really had not considered the complications involved in this issue.

..but for what its worth, I believe you can avoid the whole billboard rotation issue completely if:

A) The requirement is that the billboard be aligned to face the camera
B) there is an assumed common "up" reference - typical for First Person shooters where the user has control of Pitch and Yaw, but not Roll.

Under these assumptions I believe you can just transform the position of the "billboard" to screen space, and then perform the size calculations necessary - Because screen space is *always* aligned to the camera
Reply With Quote
  #7  
Old 03-28-2006, 12:32 AM
Agwan's Avatar
Agwan Agwan is offline
Freshman
 
Join Date: Nov 2005
Location: Australia
Posts: 45
Default ??

?????????????????????????
__________________
Agwan - EXtremeSolutions
Reply With Quote
  #8  
Old 04-01-2006, 05:16 AM
Iceplug's Avatar
IceplugAxial billboard (axis aligned) Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

That's actually not a question.
What's wrong? Be more descriptive than

?????????????????????????
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
  #9  
Old 06-11-2006, 09:01 PM
Agwan's Avatar
Agwan Agwan is offline
Freshman
 
Join Date: Nov 2005
Location: Australia
Posts: 45
Default

Quote:
Originally Posted by Iceplug
That's actually not a question.
What's wrong? Be more descriptive than

?????????????????????????
Sorry,


I have found a solution
__________________
Agwan - EXtremeSolutions
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned) Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned) Axial billboard (axis aligned)
Axial billboard (axis aligned)
Axial billboard (axis aligned)
 
Axial billboard (axis aligned)
Axial billboard (axis aligned)
 
-->