Links
AUM Magazine
Newest Posts
variadic functions
by jcl
29 minutes 29 seconds ago
Ineria
by TheLiam
31 minutes 1 second ago
Mesh question
by Logitek
54 minutes 8 seconds ago
how to save the structures with add_struct ?
by Helghast
Today at 13:18
Bugs in games
by Random
Today at 12:51
Latest Screens
Overlay Window Project
Marble Ball Dash
Sea
Gravix
Secret Of The Sword - Castle Rooms
Who's Online
65 registered (3dgs_snake, Benni003, achaziel, aaronkaminer, aztec, bobby_danseco, Bone, 3run, axon, 8 invisible), 141 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
GMaSG, Galion, BlueFlame, getyoursnackon, komody
14940 Registered Users
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#309325 - 02/08/10 18:23 background models
draculaFactory Offline
User

Registered: 02/04/05
Posts: 635
Loc: Williamsburg, VA USA
Is it safe to assume that there is no way to place large models in the background that the camera cannot get close to?
_________________________
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

Top
#309329 - 02/08/10 18:45 Re: background models [Re: draculaFactory]
Redeemer Offline
User

Registered: 12/21/08
Posts: 543
Loc: America
Use a VIEW entity or a SKY entity.
_________________________
Sheridan Rathbun, programmer. I know C-Script and Lite-C very well. I have roughly 8 years of experience in game development. If you have a question or a job offer, PM me!

"Hexen: Edge of Chaos" Doom3 mod approaching release! http://www.hexenmod.com/

Top
#309403 - 02/09/10 06:08 Re: background models [Re: Redeemer]
draculaFactory Offline
User

Registered: 02/04/05
Posts: 635
Loc: Williamsburg, VA USA
See here is the thing... A view entity is close to the camera and covers everything else, which isn't what I was looking for. A sky entity does not work in this manner; it still allows the camera to get close to it and it still may be contacted by other models. I've tested this up, down, and sideways; setting those flags simply does not work. I knew someone was going to respond saying this jeez.
_________________________
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

Top
#309406 - 02/09/10 07:54 Re: background models [Re: draculaFactory]
alibaba Offline
User

Registered: 05/05/08
Posts: 725
Loc: in a House
i think you can use a normal model and use a script to hold a distance, then you can never touch the model.

you could use something like this:
while(1)
{
my.x=camera.x+500;
wait(1)
}
_________________________
Commercial Edition
A7.85.3
--------------------
Testen... Ich hasse testen!

Top
#309472 - 02/09/10 17:24 Re: background models [Re: alibaba]
draculaFactory Offline
User

Registered: 02/04/05
Posts: 635
Loc: Williamsburg, VA USA
Yes I am currently using that method, however, the background model will still intersect with other models in the area which is something that I am trying to avoid.
_________________________
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

Top
#309833 - 02/11/10 16:18 Re: background models [Re: draculaFactory]
Redeemer Offline
User

Registered: 12/21/08
Posts: 543
Loc: America
Quote:
A sky entity does not work in this manner; it still allows the camera to get close to it and it still may be contacted by other models.


Umm, no. A sky entity does not interact with your level or any objects in it. You define a SKY entity like this:

Code:
SKY* test_sky =
{
  /* clip distance is 50000 quants */
  /* to keep our model IN FRONT of any skybox you have */
  /* keep its x, y, z parameters LESS than 50000 quants */

  type = "mountains.mdl";
  x = 30000;
  y = 30000;
  z = 0;

  /* the sky entity will NOT react with any other objects, and */
  /* it will stay exactly 30000x quants and 30000y quants away */
  /* from the camera at all times */
}



So, like I said: use a sky entity.
_________________________
Sheridan Rathbun, programmer. I know C-Script and Lite-C very well. I have roughly 8 years of experience in game development. If you have a question or a job offer, PM me!

"Hexen: Edge of Chaos" Doom3 mod approaching release! http://www.hexenmod.com/

Top
#310498 - 02/15/10 06:11 Re: background models [Re: Redeemer]
draculaFactory Offline
User

Registered: 02/04/05
Posts: 635
Loc: Williamsburg, VA USA
Well gee golly corn cobs grin



I didn't think that sky entities were defined like this lol. Hmmmm... I guess er maybe um, I don't maybe you were mistaken? One thing is for sure; something is missing.
_________________________
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

Top
#310519 - 02/15/10 09:25 Re: background models [Re: draculaFactory]
Helghast Online
Expert

Registered: 01/02/04
Posts: 2855
Loc: The Netherlands
http://www.conitec.net/beta/aview-scene.htm

that should get you sorted. Redeemer did make the mistake calling it SKY* where it should read ENTITY*
Even the best make a mistake sometimes wink

regards,
_________________________
Formerly known as dennis_fantasy
http://www.designorhea.com/

Top
#310559 - 02/15/10 16:12 Re: background models [Re: Helghast]
draculaFactory Offline
User

Registered: 02/04/05
Posts: 635
Loc: Williamsburg, VA USA
Helghast, I know that you are trying to help, but that method simply does not work. I've been trying to do this for over a month now.

Quote:

Redeemer did make the mistake calling it SKY*


I know he did grin I knew he did before I even pasted the code lol. Oh burn.
_________________________
Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

Top
#310561 - 02/15/10 16:49 Re: background models [Re: draculaFactory]
Redeemer Offline
User

Registered: 12/21/08
Posts: 543
Loc: America
Whoops! I'm pretty sure that was how it was done in C-Script, but I must be mistaken. I'll have to look it up again...

@draculaFactory:
This might seem rather obvious, but have you checked in the manual for this? The manual should have an entry for sky entities.
_________________________
Sheridan Rathbun, programmer. I know C-Script and Lite-C very well. I have roughly 8 years of experience in game development. If you have a question or a job offer, PM me!

"Hexen: Edge of Chaos" Doom3 mod approaching release! http://www.hexenmod.com/

Top
Page 1 of 2 1 2 >


Moderator:  HeelX, oliver2s, Shadow969, TSG_Torsten 

lite-c | chip programmers | download | shop | resources | magazine | manual | support faq | wiki | bugs | beta features | forecast

Conitec Datasystems, Inc · 5000 Thorne Drive, Suite F · La Mesa, CA 91941 · Tel +1 (619) 462-0515 · Fax +1 (619) 462-0519 · info (at) 3dgamestudio.net