Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   Mods (http://forum.fulqrumpublishing.com/forumdisplay.php?f=143)
-   -   Symetry (http://forum.fulqrumpublishing.com/showthread.php?t=6470)

Gniarf 03-02-2009 07:50 PM

Symetry
 
Hi all,

I'm trying to make a mod that allows to dual wield most weapons. But there is no 3d model for left handed vampguns, for example.
So I'd like to know if there is a function to flip a model left/right. Or maybe stretch it in one direction with a negative factor.

rstratton 03-06-2009 03:11 AM

u could mirror it if u could get the model into 3ds max or somethin

Gniarf 03-06-2009 06:16 AM

Funny that you say that exacly when I'm trying the Blender pkmdl importers, who ofc, do not work. Well actually they work for some models, at least I saw the tank and the dual heavy mg, but they fail for the vampgun and the bar1918.

Gniarf 03-06-2009 02:57 PM

Jackpot!
 
Yipee, I finally found a way:
1-In [name of the weapon].CWeapon you should have something like:
Code:

o.Scale = 0.5
o.Pos = Vector:New(0.4,-0.5,-3)
o.Ang = Vector:New(0.15,0.2,0)

well turn
Code:

o.Scale = a
o.Pos = Vector:New(b, c, d)
o.Ang = Vector:New(e, f, g)

into
Code:

o.Scale = -a
o.Pos = Vector:New(-b, c, d)
o.Ang = Vector:New(e+3.14, -f, g)

(yumm, dual vampguns, vamp shotgun+RL, dual shovels...Here I come!)

Gniarf 03-08-2009 01:20 AM

Obscure problem
 
1 Attachment(s)
Symmetry problem - round 2: whenever I set a negative scale in a .CWeapon file the weapon turns black as if there were no light at all on it.
I looked through the .lua&.CWeapon files, but I didn't find the definition of that light (I used the vampgun as a test subject).

So, does anyone know how to restore the weapons to their normal looks?
Or at least can someone explain me why the weapons are turning black?

rstratton 03-08-2009 03:22 AM

Quote:

Originally Posted by Gniarf (Post 69178)
Symmetry problem - round 2: whenever I set a negative scale in a .CWeapon file the weapon turns black as if there were no light at all on it.
I looked through the .lua&.CWeapon files, but I didn't find the definition of that light (I used the vampgun as a test subject).

So, does anyone know how to restore the weapons to their normal looks?
Or at least can someone explain me why the weapons are turning black?

sounds like it inverts the vertex normals along with the model

Gniarf 03-09-2009 05:38 PM

1-Thanks.
2-I'm working on it, but I've got a busy RL now.
3-...2 sided texture rendering should do it, right?

Csimbi 03-09-2009 09:52 PM

Quote:

Originally Posted by Gniarf (Post 69178)
I looked through the .lua&.CWeapon files, but I didn't find the definition of that light (I used the vampgun as a test subject).

Not even a reference to some light object(s)?

Gniarf 03-10-2009 03:17 AM

Save for the muzzle flash and various firing fx, yes - no lights at all.

Gniarf 03-13-2009 11:54 AM

Ok, I have a few questions:
1-What's the diffrence between 3d mesh and 3d model?
2-What happens if I negate vertex uv coordinates (or rather only u cooridnates)?


All times are GMT. The time now is 07:17 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.