Inside3D!
     

Flash Light -- Extremely tough question

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



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Mon Apr 24, 2006 6:40 pm    Post subject: Flash Light -- Extremely tough question Reply with quote

You can make any model glow with a light in QuakeC.

Is it possible to make a flashlight effect where there is no model receiving the glow effect in standard QuakeC?

Like a light glow somewhere with no model present?
Back to top
View user's profile Send private message
MauveBib



Joined: 04 Nov 2004
Posts: 602

PostPosted: Mon Apr 24, 2006 7:02 pm    Post subject: Reply with quote

Sure, just make a blank sprite to be the model for the entity.
_________________
Apathy Now!
Back to top
View user's profile Send private message
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Mon Apr 24, 2006 8:22 pm    Post subject: Reply with quote

MauveBib wrote:
Sure, just make a blank sprite to be the model for the entity.


I was thinking of that option, but the mod in-progress doesn't require any model downloads and will be running on a server.

Are there any other workarounds that don't involve new models/sprites being utilized?
Back to top
View user's profile Send private message
scar3crow
Inside3D Staff


Joined: 18 Jan 2005
Posts: 837
Location: Las Vegas, NV

PostPosted: Mon Apr 24, 2006 9:21 pm    Post subject: Reply with quote

In a mod of mine I simply took a setmodel line and removed the contents of the information saying which model, leaving just = ""; but kept the EF_BRIGHTLIGHT or whatnot, and I had a moving light source, with no model or sprite involved at all.
Back to top
View user's profile Send private message AIM Address
Baker



Joined: 14 Mar 2006
Posts: 1538

PostPosted: Mon Apr 24, 2006 10:13 pm    Post subject: Reply with quote

scar3crow wrote:
In a mod of mine I simply took a setmodel line and removed the contents of the information saying which model, leaving just = ""; but kept the EF_BRIGHTLIGHT or whatnot, and I had a moving light source, with no model or sprite involved at all.


If that works, that would be great.

You told me you weren't a coder at all, heh.
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Tue Apr 25, 2006 12:49 am    Post subject: Reply with quote

That won't work. It might in Darkplaces (not sure), or in single player (not sure). But entities with no model aren't sent over the network. You need to use a model. The best you can do is probably the nail (spike) model...
_________________
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
scar3crow
Inside3D Staff


Joined: 18 Jan 2005
Posts: 837
Location: Las Vegas, NV

PostPosted: Tue Apr 25, 2006 12:56 am    Post subject: Reply with quote

Baker - Im not =)

Sajt - Heh, this was done in singleplayer DarkPlaces!
Back to top
View user's profile Send private message AIM Address
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Tue Apr 25, 2006 1:51 am    Post subject: Reply with quote

That's in DP only, normal Quake and most other engines check if the model is blank, if so it's not sent. DP adds in an additional check: if the model is blank AND there are no effects, then it is not sent.

Single player never has anything to do with it, because SP is just multiplayer with maxplayers 1 and using a loopback buffer rather than a real network device.

Frame 1 of s_bubble.spr is pretty small...
Back to top
View user's profile Send private message Send e-mail
IceDagger



Joined: 19 Nov 2004
Posts: 20

PostPosted: Thu Apr 27, 2006 9:32 am    Post subject: Reply with quote

Yeah, I've seen a flashlight tutorial somewhere that used that sprite model.
Back to top
View user's profile Send private message
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