Inside3D!
     

Modelled Shields

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
Skippy



Joined: 14 Sep 2007
Posts: 4

PostPosted: Thu Sep 20, 2007 3:05 am    Post subject: Modelled Shields Reply with quote

Wondering if anyone can give any insight on how to do a shield similar to counter-strike. From what I've read, attached models lose collision info, so I guess it would need to be following the player some other way. I imagine I could simply animate all the frames for the shield placing it where it would be on the player, that way it would just have to align with the player origin and angles, but beyond that concept I'm pretty lost.

Per poly collision would probably be a good idea for accuracy, unless someone has a brilliant plan to get a hitbox to follow a moving and animating object.
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Thu Sep 20, 2007 6:08 am    Post subject: Reply with quote

Yeah, per-poly is your only really good bet (as long as you're using DarkPlaces). Bounding boxes can't rotate, so if you were at a 45 degree angle it would be a lot bigger than it should be.

The shield could either be attached to a tag on an md3 model, or a quake2-vwep-style thing animated along with the player, and attached with MOVETYPE_FOLLOW or something similar.

The other alternative is a bunch of hard-coded math Smile If you hard coded shield orientations per frame (or used a tag), and used some dot product math you might be able to simulate a round shield.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Thu Sep 20, 2007 6:51 pm    Post subject: Re: Modelled Shields Reply with quote

Skippy wrote:
From what I've read, attached models lose collision info


This is true. Can't do HITMODEL with attachments :/ this is severely hindering my projects as well
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Fri Sep 21, 2007 12:43 am    Post subject: Reply with quote

Surprised
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Fri Sep 21, 2007 1:36 am    Post subject: Reply with quote

yeah, i was hoping to do pleasure zones attached to tags
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Fri Sep 21, 2007 2:34 am    Post subject: Reply with quote

Surprised
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Back to top
View user's profile Send private message
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Fri Sep 21, 2007 1:52 pm    Post subject: Reply with quote

/me coughs something about gettaginfo and Matrices
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
xaGe



Joined: 01 Mar 2006
Posts: 329
Location: Upstate, New York

PostPosted: Mon Sep 24, 2007 1:57 am    Post subject: Reply with quote

/me **cough cough** ..something reguarding anime pron..Wink


leileilol wrote:
yeah, i was hoping to do pleasure zones attached to tags
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group