News | Forum | People | FAQ | Links | Search | Register | Log in
Modeling For Quake (help)
hey, iv been having issues getting custom models into quake, if anyone can help me or knows any good tutorials for me to use it would be much appreciated, thanks! (this seems to be a mapping site, but i was directed here for this issue by someone else)
First | Previous | Next | Last
Here You Go, Buttasses 
Version 0.01 of lunmodelgen.exe and .py:

[ ]
[ ]

The .txt should explain everything, but only if you read everything in it. I also included an unfinished example monster! 
Great Thread 
If You Are Modeling 3dsmax 
i found a useful utility that will deform a mesh into the shape of your UVs. you can use relax and pelt mapping now for quake models. :)

when you use it on a mesh, it creates a new mesh with a morpher modifier on it so you can go between the unfolded mesh and the original. now you can just export the skin from with the unfolded mesh, then use the morpher to bring everything back together, slap a skin modifier on top and start animating! (if you use the original mesh and then try to combine it with the unfolded mesh, the vertex numbers will be screwed up) 
So I can finally have the skins painted properly without all the annoying black space outside. 
OK, stupid question (well, stupid person...);

How is the skin information in Quake different to normal texture/skin information in 3d apps?

I'm curious as to whether I can use the funky new 3d painting shiznat in PS CS3 Extended to skin quake monsters (or at least, a combination of PS and maya/lun's script) 
UVs In Mdls 
There are two types of UV vertices in a quake model, onseam and offseam. The offseam vertices are the ones not on the perimeter of any shape on the skin. These are exactly like UV coordinates in any other app: each such vertex on the skin is paired with one on the model, and every triangle which meets that vertex will have the corresponding triangle meet it on the skin.

The difficulty arises once you get to a vertex on the edge of a piece on the skin. You don't want all of the triangles which meet at that vertex on the model to join onto it at that UV point on the skin, because you would like to unfold them as separate pieces.

The quake mdl format allows such vertices to be designated "onseam". Then two copies of this vertex will be made on the UV map (but not the model) - one on the left hand side of the skin, and another half the skinwidth to the right of it. To determine which triangles connect to which copy of the vertex, each triangle in the model has a flag "facesfront" which is set by the model compiler. If the triangle faces front it is connected to the left hand vertex, otherwise it connects to the right. As you might guess, the original quake model compiler calculates this based on whether the face is front or back facing, which is why you get the front/back pairing on the original skins.

The alternative, which I support despite always listing it's negative effects, is to make none of the vertices "onseam", but instead make actual duplicates of those vertices in the model which are on the edge of a skin segment, so that they can be moved where you like on the skin. This allows for much better packing of the skin, since you can do things like mirroring halves, devoting more space to things which face front, all the tricks basically. 
Preach, that gave me more perceptive!
Point is I gave the granito.qc three pain sessions so
the = granito_pain_decide
I can change it but how do I calculate the other three pain session?

a closer watch: 
It looks like most of what you need is there. First thing I would try is change all those pain finished things to equal time + 5, if it's meant to be a really powerful monster.

There's a small bug which means the first pain animation won't ever be called, you should change

if (r < 0.66)


else if (r < 0.66)

otherwise when r < 0.33 it's also < 0.66 so the second pain sequence overrides the first one.

To make the pain animations less likely to happen, you could change to something like

if(r < 0.05)
{ first sequence...}
else if(r < 0.1)
{ second sequence...}
else if(r < 0.15)
{third sequence ...}

That way if r > 0.15 none of them happen. You could even finish that with:

self.pain_finished = time + 0.5;

so that if it doesn't go into pain that time, don't even bother to check for the next half a second, which would defend it against pain from nails/lightning a bit more.

You may find putting all these things in might go too far the other way, I'm just throwing them at you so you have the options. 
That goes great!

First I copied the shambler's part of the sham_pain, but then I lost the other two pain sessions in the statement.

But indeed it has more power now. It can't be shot so easily and that's what bothered me in the first place for an end boss.

Hey, thanks for that splendid cham_pain explanation! 
wouldn't gl engines copy the vertex anyways for rendering? 
Yeah, but that copy wouldn't count towards the limit of 1024, only the ones that are loaded from the mdl structure count for that. 
Was just browsing Polycount and someone made a script like the one necros posted for Maya:
Thought it might interest someone maybe. 
do I create the last death frame of a monster,
so its death scene leaves in another skin index? 
just add = # in the last frame function.

but seriously, madfox. post this stuff in the programming thread. :\ 
thanks for advice.
nice thread. 
if anyone's interested in modeling and uses milkshape i have a tutorial i wrote that might help you out.

it's here: 
Interpolated Vertex Animation And Mesh Volume 
model & animation: A rotating disc (like a gear, for example) comprised of 20 frames for 1 full rotation (frame 1 being 0 degrees, frame 10 being 180 degrees, etc). When the animation loop is interrupted, the gear will idle at frame 1.

scenario: the animation loop is interrupted at say, frame 12.

problem: the engine's interpolation adds frames in a straight line between each of the vert's positions, causing the disc to collapse briefly as it transitions from frame 12 to frame 1.

I need some way to constrain the mesh volume so it will appear to rotate naturally between frames. Is this possible with a skeletal format such as IQM? 
Is there a QC command (in supported engines) to suppress interpolation for one frame, or am I imagining it? 
Nolerp Per Frame 
there's this:

//idea: id software
//darkplaces implementation: divVerent
//effects bit:
float EF_TELEPORT_BIT = 2097152;
//when toggled, interpolation of the entity is skipped for one frame. Useful for teleporting.
//to toggle this bit in QC, you can do:
// self.effects += (EF_TELEPORT_BIT - 2 * (self.effects & EF_TELEPORT_BIT));

Which I haven't tried yet because because the disc in question is just a small part of a larger mesh and I don't want to nolerp the entire entity.

I could split the disc off as a separate entity but that's something I'm trying to avoid... 
QC Manged Looping 
You might need to animate it yourself using qc (like for enemies) to let you stop at any frame? 
It Is Animated That Way 
the loop is dependent on player input which can change at any time. Unfortunately forcing a full loop before stopping the animation isn't possible here. 
Loops Versus Interpolation 
Maybe not the same, but an answer to my experience in making a convoybelt. The intention was to create a production line with an energy cell with twenty frames. I have noticed that the method that uses darkplaces is different from fitzquake.

I animated one cell/1frame, going to the half part, then hide the cell under the convoybelt, and then sweeping it up after the other half part was gone.
The convoybelt went easy, as it is a straight line.
The claw made an angle , so I had to hide it in three frames before the next row.

When I finally got the animation right, the interpolation was discussed.
After a lot of sliding and fitting I finally got the series running, but then I realized that each engine applies its own way of "turning".

here are the model versions I used. 
What Do You Mean Loops? 
I'm not understanding what you are doing. 
Loop = Frame Sequence 
what I'm doing:

if player is pressing 'x' play frame sequence indefinitely; if player isn't pressing 'x' go to frame 1.

Interpolating any frame other than 20, 19, 18 and 17 to frame 1 results in poop because of the reason stated in post #44. 
Which I haven't tried yet because because the disc in question is just a small part of a larger mesh and I don't want to nolerp the entire entity.

What else in the mesh is moving apart from the disc? I'm trying to visualise how the nolerp for a frame option would look bad... 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2023 John Fitzgibbons. All posts are copyright their respective authors.