Origin Brushes
#6598 posted by Preach on 2007/10/31 19:42:06
Anyone know of a compiler for Quake 1 that supports origin brushes? There's talk on the inside3d forums of one existing, so it'd be great to have a copy.
Preach:
#6599 posted by metlslime on 2007/11/01 00:18:44
that would be great to have if it exists, and I think it is at least possible that origin brushes could be supported, but I don't know offhand whether the quakec func_rotate_* code would have to modified to work correctly with it.
Rotate_object
#6600 posted by Preach on 2007/11/01 01:22:39
At the moment a rotate_object with a target uses the matching target entity as it's origin vector. Then all the brushes are moved that distance in the opposite direction so that they line up again. That's the same effect as the origin brush would have, so the hipnotic code would work straight away. Still might be worth revisiting that code though...
#6601 posted by metlslime on 2007/11/01 02:13:49
That's the same effect as the origin brush would have
Well it's not just the actual pivot point that is important. It's also the default placement of the brushmodel in the world, which affects things like texture alignment and dynamic lights -- both of which are incorrect the way we currently do rotating brushes.
If Someone
#6602 posted by ijed on 2007/11/01 02:28:51
Could find the time to streamline / rebuild from scratch the shitty rotating code it'd be nice.
It doesn't have to be easy to build a rotating object, but it should be possible in, say, a speedmapping session.
I suppose AguirRe is the one to ask about compiler compatibility.
Ah
#6603 posted by Preach on 2007/11/01 11:09:57
I see what you mean now. In terms of default placement when you load the map, it'll load in the right place, you wouldn't have to fiddle with the origin any. In terms of whether the texture alignment/lighting would be correct, that would really depend on how it was written. The most straightforward way of doing it would just use the hipnotic code straight away, except it would calculate the origin value based on the origin brush instead of the targeted entity. So it'd have the same problems. You could rewrite the whole thing - and if you were bothered to do that you might as well add origin brush support at the same time. But I wouldn't want to...
Aw . . .
#6604 posted by ijed on 2007/11/01 13:54:28
Heheh ;)
I Know, But I'm Allergic To Programming
#6605 posted by RickyT33 on 2007/11/02 12:14:02
Oops Wrong Post
#6606 posted by RickyT33 on 2007/11/02 12:14:20
Say...
#6607 posted by madfox on 2007/11/03 05:45:48
I need a Q1monster that can walk, but also swim.
Would this be a holdup to the walkmonster_start code?
I mean, I can't put both in a qc-script?
Or something like a fly/walk monster?
.
#6608 posted by necros on 2007/11/03 21:52:51
kell and i toyed with this for a bit and it's definatly possible.
i would recommend you make a new ai_run function. in it, you need to check the pointcontents() of some point (i used the origin) in the monster to check every frame if it is in a liquid or not.
if it's not in the water, you need to remove the FL_SWIM flag (and likewise, add it if it's IN water). the FL_SWIM flag is what lets fish and stuff move around in water. apart from that, there's very little that needs to be changed, although i'd recommend adding a new trigger_jump type brush entity to help the monster make the transition between water and land, unless you want to build ramps all the time.
. . .
#6609 posted by ijed on 2007/11/04 16:29:10
Sounds like the Nehahra Jagger.
Thanks
#6610 posted by madfox on 2007/11/04 18:49:18
for your answer, necros. Fact is my qc knowhow isn't bigger than a mouse, and even that I could make hardly go walking.
If I look at the ai_run function I haven't a clue where to begin.
There's a FL_SWIM flag in the monsters.qc where the options for moving monsters is specified.
So I guess making a new ai_run function isn't enough.
JPL Or Anyone...
#6611 posted by RickyT33 on 2007/11/05 14:23:41
What is the best way of doing coloured lights?
What light util is best (does AguirRe's support coloured lights?)?
To my understanding a light ent needs to have the key;
'_color'
with a value of something like
'255 0 0' - pure red
'0 255 0' - pure green
'0 0 255' - pure blue
Fitzquake is a good engine to use? Any others?
I have tried experimenting but when used a method like the one described above, Darkplaces seemed to show the lights as being rather ugly incorrect 'rainbow' type effects?!!
What am I doing wrong?
Note - I am aware that there are supposedly two types of bsp coloured light info files - a bsp30(?) with the info stored within the file, and a 'lit' file which would go alongside a bsp29(?), and that bsp29(?) is compatible with non-coloured light supporting engines.
This is what I know (or what I think I know), any help mucho appreciatado!
RickyT23
#6612 posted by JPL on 2007/11/05 17:00:29
The field you are adding are correct (i.e _color <R> <G> , R/G/B values in 0-255 range)
Also, try to be as smooth as possible: I mean that strong colors generally kills the map, giving it ugly rendering.
You also need a light tool that generates .lit file (like Tyrann's light tool as example: check out http://www.disenchant.net/utils.html )
OTOH FitzQuake supports colored lightning, aguirRe's engine doesn't. you just need to put both .bsp and .lit file in the map directiry, and it is done...
Concerning DarkPlace, AFAIK it supports colored lights, but needs .bsp file using bsp30 format, and bsp29 + .lit file are not correctly handled..
On my side, I genrally use .bsp in bsp29 format with its .lit file: it can be independently loaded on different engine that support (or not) colored ligths... and I don't use DarkPlace at all: it sucks IMHO... just a question of taste... and FitzQuake is the reference engine here... please be "corporate" :P
OMG
#6613 posted by JPL on 2007/11/05 17:01:31
I completly forgot that <bold> </bold> story... gasp :(
Hmmm..
#6614 posted by RickyT33 on 2007/11/05 17:51:01
I have much experimentation to do later! Thanks for the info - I know it sounds like I already just about knew what I was doing, but for some strange reason I havent managed to successfully create a coloured light yet!!
Its finding the right mix of colours to get a good looking light I guess.
Hmmm, I wander if the map I'm creating will run on fitzquake, cause I know AguirRe's engine will handle big maps, and my map is currently quite big (not as big as The Sickbase though)! I guess thats why you made Five Rivers Land three maps rather than one...
Yellow?
#6615 posted by RickyT33 on 2007/11/05 17:53:29
How do you get a shade of yellow using RGB configurations??! Green would have to be used with both red and blue I 'spose, but to what degrees?
Not Sure For Quake
#6616 posted by ijed on 2007/11/05 18:49:49
But typically green would be 0 255 0 and yellow 255 255 0. That should produce very bright colour, so lower the 255's until you get something that looks good.
For Color Choice
#6617 posted by JPL on 2007/11/05 19:48:17
Just use your prefered image tool (e.g Pals2Go, PSP, Paint, etc..) or this link http://www.visibone.com/colorlab/big.html .. ;)
For yellow, I use personally RGB as 255 255 220, sometimes 255 255 200.. Lowering all the fields will pull the color to "grey"... and decrease its strengh actually... It is far better to play with delay and wait value... though...
Let's experiment: this is the best way to go :P
Well..
#6618 posted by RickyT33 on 2007/11/06 10:48:07
I experimented some last night, and managed to get some coloured lights working in a small map, but when I put some in my larger map (3mb) tyrlite gives the error message:
"color 0 < 0"
about half way through the total number of faces!
Yes I was using a command prompt. I tried making sure that none of the color values were 0, but that didnt make any difference!!
before that I was getting another error message that said something about a 'stack overflow', something like 'drawskycolor'. Anyone got any clues?
JPL - That website you have linked to is very usefull! Thnx!
RickyT23
#6619 posted by JPL on 2007/11/06 11:48:54
What is the command prompt you used ?
Just XP Home
#6620 posted by RickyT33 on 2007/11/06 12:22:23
standard command prompt (a dos box). Also tried Worldcraft process window with -nocount
Sorry
#6621 posted by JPL on 2007/11/06 13:20:37
I was refering to the light tool command line you typed in the prompt "DOS" window.. Did you add a -lit option ? What is the light tool you are using BTW ?
Oh, I See...
#6622 posted by RickyT33 on 2007/11/06 13:33:20
Tyrlite 0.99e
light -lit -extra <file>
I also have a copy of Tyrlite 0.99c but havent tried it, I wouldnt have thought it would be much different
It says:
lighting face ##### out of 11### (ish)
gets to about 5000ish
then says:
Error
color 0 < 0
|