Does anybody of u work with Milkshape 3D? I don't think so...but:
I've developed a converter that converts the .p-Files into Milkshape-RAW-Format. It works pretty good, but until now, it only imports the polygons (with their vertexes :wink: )
I'm workin' on a new version hat can also import the colors (oh shit...)
(Thanx to Qhimm & Ficedula 4 the .p file format description)
If u'r interested in the converter, u can download it here: http://alhexx.tripod.com/apps/ff7/p_to_raw.zip
U can also convert the files from the battle.lgp, but these files r HUGE! They'r about 100 x the size of the other .p files.
You've got to rename the files there (*) into .p files (*.p)
Important: U can't convert files named '**ab.p' and '**da.p'. If u try, an error will occur.
I suppose that these files aren't 3d models... :D
If u haven't got Milkshape u can download it here: http://www.swissquake.ch/chumbalum-soft/ms3d/download.html
- Alhexx
P.S. What do u know 'bout the battle-format 'til now? :-?
Sounds good though :) I look forward to testing it out.
- Alhexx
P.S. U need the VB6-Runtimes to run my apps
(Sorry, no C/C++ Apps)
[This message has been edited by Alhexx (edited May 21, 2001).]
Could someone post a screenshot or something? Like I said, don't have access to my own PC at the moment...
**edit**
Nvm, it turned out that my college admin's switched of access to all zip files. :(
BTW, I'm sure Seph 3D would be really interested in this. :)
[This message has been edited by The SaiNt (edited May 22, 2001).]
ficedula: Want some (two :D ) screenshots? Here we go...
" TARGET=_blank>http://alhexx.tripod.com/apps/ff7/tifa_field.gif[/URL]
" TARGET=_blank>http://alhexx.tripod.com/apps/ff7/tifa_battle.gif[/URL]
Info 4 the field model: the converter doesn't import any 'textures' or bones ('till now)
I've had to texture the model manually...
I'm workin' on a new version of the converter that automatically generates a Milkshape-File with groups, colors etc.
Battle Model: That's tifa's head... :)
I'm lookin closer at the battle files at the moment...
- Alhexx
[edit]
Damn, those links above don't work...use this one instead: http://alhexx.tripod.com/apps/ff7/tifa_ms3d.html
[This message has been edited by Alhexx (edited May 22, 2001).]
This time it converts the .p-files to Milkshape 3D-ASCII-Files and it creates automatically bitmap textures 4 the model and associates them with the created groups... :-?
If u want to try it, u can download it:
http://alhexx.tripod.com/apps/ff7/p_to_ascii.zip
But be careful, this app is EXTREMELY BETA ! Because I've got a REAL BIG PROBLEM:
Within the .p-Files the colors of the polygons are 'created' by the vertexes, but in Milkshape, the vertexes have no colors. So I've had to create an own group for each polygon (What a mess!) I recommend to use the *old* :wink: .p-File-to-Milkshape-RAW Converter... (If u try out p-to-ascii, u'll know why... :D)
If there's a possibility of giving a color to a vertex in Milkshape, it'd be nice if someone told me how...
Sir Canealot: I'm not so far yet, but I'll think 'bout it...
- Alhexx
[This message has been edited by Alhexx (edited May 22, 2001).]
- Alhexx
Wow I just though of something.. In ff8 I've been trying to devrypt the battle scenes so I can extract a 3d background. But each field has a floor, which is more accurite to the background. a FF8 battle scene/poly plain would almost complete the whole world ^_^
I thought we'd pretty much determined that the .a files had animations in them; that's what Qhimm seemed to think and I agree with him, though I didn't manage to properly decode a .a file.
Alhexx: Textures? Why do you need to know anything about textures? Only used for the eyes in FF7 models AFAIK...
- Alhexx
I'm working on a presentation on the technical side of FF7 (graphics, sound, posibbly how the field works.) This topic (along with several others) has helpful information.
Alhexx: Do you mind if I use the wire-frame picture of Tifa in my slide show? I'll be sure to list you on my 'Credits' slide :)(along with Qhimm and Ficedula, for the LGP utilities; and several others on this board for interesting info)
BTW, because I'm sick of listing every link (http://...) in this forum, I've built something like a *Homepage*... every file i'll publish will be listed in this page, so bookmark it... :D
http://alhexx.tripod.com/apps/ff7/ff7.html
BTW, I've released the first version of 'Ultima', my .p-Tool, it exports .p files as .p-to-raw does, but u don't have to 'open' every file...later versions will (probably) be able to convert raw files back into .p files...
- Alhexx
[This message has been edited by Alhexx (edited May 25, 2001).]
[This message has been edited by Sir Canealot (edited May 25, 2001).]
That's going on my bookmarks list, oh yes.
I'll download the program now, I *think* I've got a copy of MS3D knocking around somewhere.
Oh, and Srethron: Any chance of an estimated release date on the fabled document of yours?
[This message has been edited by ficedula (edited May 25, 2001).]
- Alhexx
dammit someone registered my name........
dark(ness): It wasn't me...Sorry...
To All: I've uploaded a new screenshot (of snow) and version 0.25 of 'Ultima'. I've fixed some bugs, but it still can't convert raw to .p files (I'm workin' on it, but it doesn't work (I don't understand why...))
- Alhexx
- edit -
Congratulations, Dark(ness), u were able to fin ultima025 in the time between uploading it and writing this post... :wink:
[This message has been edited by Alhexx (edited May 27, 2001).]
p-->raw: That exactly what i've written in my post!
- Alhexx
Basically, if you're previewing a HRC skeleton in LGP Tools, then right click and one option is "Export Skeleton". This'll extract all the .P files that skeleton uses into a folder by themselves, ready for you to point Ultima at and do "Convert folder".
Not sure how much help it'll be but I thought it'd make getting the files ready for Ultima to convert easier.
Alhexx: I'll get Ultima 0.25 now. Anything interesting?
Oh, and d'you mind if I add your FF7 page to my webpage Links section? Didn't think you would, but I wasn't sure how permanent that page is.
[This message has been edited by ficedula (edited May 27, 2001).]
to Ultima025: There's nothing really new, I've fixed some bugs with the convert function and I've tried to convert raw back to .p, but this f**kin' Ultima doesn't want to write the coords of the vertexes into the .p file correct, but I don't understand why.?.but I'm still workin' on it...
LGP Tools Update: Sounds interesting...I'm going to download it now...
- Alhexx
- edit -
Hey fice, I can't download it, too. The Server wants username and a password...and because of this, he puts out : 403 - Access Forbidden (Hum, but I wonder why I can download lgptools 1.31 ??? :-?
[This message has been edited by Alhexx (edited May 28, 2001).]
- Alhexx
P.S. YEEEAAHHH! I made it up to Ficedula's Link Page (I have never thought that this will happen so far ( I'm so happy :) ))
Please Help me...
- Alhexx
and the outputed x variable is screwed up. ill look into it.
CD1 is a 'CommonDialog'.
Maybe you're right...I've also recognized, that the X variable is written badly, but I've got no real idea why...
- Alhexx
PolyY(z%, m%) = Val(Mid$(Poly(z%), leer1_1% + 1, leer1_2% - leer1_1%))
that writes some of the last vertexes correctly on what i was testing it on.
Mid$(String, Value) retrieves all of String from position Value onwards
Mid$(String, Val1, Val2) retrieves only part of String from position Val1 onwards (think Val2 is how many chars to read? dunno).
(God, I can't believe I can actually remember any VB ... it's been years since I've used it. Luckily.)
Mid$(String, Starting Position, Chars to Read)
But I don't think that this is the reason...
darkness: 12 Bytes: I thought about this, too, and I think, it's possible. But I still don't understand it.
I've tried to let the app check if the new (manipulated) vertex coords are the same like the original ones...and then I told VB to skip the 'put-sequence', so it shouldn't have written anything, but it did...I wonder why?
- Alhexx
P.S. I won't be at home the next 4 days (Saturday - Monday), so I possibly won't have a chance of posting or uploading anything...
I've got this RAW to .p converter running! :D
Oh, man, there were quite a lot of bugs! :wink:
Well, okay, I've uploaded the latest version (0.26) of Ultima, so u can download it now.
Read the Readme File first!
- Alhexx
P.S. I've published my e-mail: [email protected]
I'm gonna do some testing, and I might have a pict posted by morning!
Sephiroth 3D
"One who seeks knowledge from another person, doesn't learn half as much as the one who seeks knowledge for himself." - Vincent Valentine, The Sephiroth Chronicals, Book 1: Resurrection
[email protected]
Sephiroth 3D's Final Fantasy
Sephiroth's 3D Lair
Sephiroth 3D's Promised Land
-Export a battle model
-Add vertecies to make up for the difference between the original file that ur editing and the more complex one in the raw.
-Set that battle model as the source p
-Set the raw for ur edited raw
-convert
That should work
Ah well, anyway. I feel I have to take a small break from my project at the moment, so I might as well help map the last parts of the 3D format.
b)Hum...Well, if u think that I'll be useful 4 u in the tech remake forum...hey, I'm lookin' forward to see a topic posted by me in the FF7 Remake Forum :wink: (means, I'll be proud of beeing authorized to the Forum)
Qhimm & SaiNt: I only have written a CONVERTER because I'm not skilled enough to program a plug-in (shame on me...) and because 3DS MAX is too complicated 4 me (shame on me...)
- Alhexx
Seriously, consider learning something else (Delphi or C++) ... though leave it until after you've finished a perfect RAW->P converter for us to use! You'll find it makes things a lot easier in the long run, although it would take a while to learn.
halkun: I'll see what I can do...but hey, that's exactly what I wanted to know about how the .ps are put together, so with your help, I'll (possibly) be able to program this...
- Alhexx
Alhexx, thanks for letting me use your pics of Tifa.
Also, thanks to a lot of other ppl here for the info on how the field files & battle mechanics work.
Fice: 'im going to learn C++, but it'll take quite a lot of time until I'll be able to program such apps like in VB, so don't expect me to program in C++ the next weeks...
- Alhexx
/*easy hello world program */
#include
main ()
{
printf("Hello Worldn");
}
/*easy hello world program */
#include
main ()
{
printf("Hello Worldn");
}
Hehe, halkun your program won't compile :P
Your main function did not return a value.
It should be like this? or this? /*easy hello world program */
/*easy hello world program */
#include
main ()
{
printf("Hello Worldn");
return 0;
}
#include
void main ()
{
printf("Hello Worldn");
}
Your C program would be just as simple under C++ since it'd be the same program? C has *no* advantages over C++.
Plus OO code speeds up development on complex problems soooooo much...
- Alhexx
P.S. Oh my god, what have I done? Since i started talking 'bout C++ now everybody gets off-topic :wink:
Alhexx: Hey, we might get back ontopic at some point.
First on the "hello world" example: Actually both are allowed. The standard form of doing it is actually returning an int, "int main()", the return value is given to the OS on program exit, 0 means success (this return value is frequently checked in shell scripts).
Arguments for using C++ instead: The thing that bothers me mest about C is that you can't make your own types. Many people consider operator overloading bad, personally I would prefer C++ just because I get to write:
string s = "Hello ";
s += "world!";
instead of the hideously ugly strcpy you C folks have to deal with.
The second thing is polymorphism. Things like widget libraries simply can't get done in a decent, extensible way without using polymorphism. Polymorphism is possible in C, but it's very messy, ugly, and slower at run-time.
In my experience, people who prefer C often don't get what polymorphism means. Comments like "the difference between a.DoSomething() and DoSomething(a) is pretty damn academic to me" (seen on Slashdot) reveals that these people clearly don't have a first clue what OOP is really about. You don't have to actually use C++, but at least learn yourself what the "virtual" keyword means (polymorphism = virtual member functions).
About Microsoft: That was code for writing a windows program. Microsoft is well known for creating horrible, illogical APIs. From what you say, I'm pretty convinced that a plain C version of the program would be the same length, the difference is that C++ users have a better chance of escaping that.
[EDIT: Typo]
[This message has been edited by dagsverre (edited June 06, 2001).]
The reason why I'm so happy:
This Viewer is the first step in direction to the 'Save File Infos'-option, so I think, there'll be a new Version of Ultima the next days (I promise nothing :wink:)
BTW: I've seen, that many things have changed in the forum: Fice's a moderator now (Congrats) and guys like The SaiNt aren't any more. Could anybody tell me, what happened? (Hey, Fice, I think u can tell me what's going on)
BTW 2: Hey, Fice, why don't u post a reply on my 'Your Names...' Topic :-?
- Alhexx
Originally posted by AlhexxHuh?
BTW: I've seen, that many things have changed in the forum: Fice's a moderator now (Congrats) and guys like The SaiNt aren't any more. Could anybody tell me, what happened? (Hey, Fice, I think u can tell me what's going on)
SaiNt: Ehm, sorry, my mistake ...
I thought, you weren't b'cause u'r not listed in the moderators lists on the Main Message Board Page (???)
mirex: Hmm, interesting - I never had this problem...and I have no idea what happened, because I haven't included any special Active-X controls...
Does anybody know what's wrong?
darkness: I'll take a look at it
BTW: Why don't u register your name???
- Alhexx
- edit -
Oops, my mistake again:
SaiNt is listed on the MMBP...in the Remake Forum (what the heck happened to me?)
- edit 2 -
mirex:
1. Ultima 0.56? Cool :wink:
2. I think I've got an idea: Ultima creates a 'File System Object' to get the .p file's extension to filter it out in the destination file name - perhaps that's the reason?
[This message has been edited by Alhexx (edited June 12, 2001).]
Does anybody know an OpenGL command witch lets me move the axis up/down and left/right (somehting like the 'glRotatef'-Command ?)
If someone knows, (Qhimm, you're workin' with opengl viewers, don't you?) please let me know.
- Alhexx
What d'you need to do? Move the point that's something's being drawn at? Look at glTranslate command.
hehehe ... if you need to do something in OpenGL, just ask, I'll probably be able to tell you ...
Oh, and as for ActiveX controls: VB probably uses them behind the scenes for lots of stuff. It doesn't exactly give you 100% control over how your app runs.
- Alhexx
- Alhexx
- Alhexx
- Alhexx
BTW: Yeah, my first posted topic, and I've crossed the 100 replies border...hehehe
BTW, fice, my college posted a list of the top 50 Uni's in UK. IIRC, you said you were in Warwick right? Well, Warcwick got a 10th placing :)
*Edit*
It was 50 not 5 :)
[This message has been edited by The SaiNt (edited June 14, 2001).]
I'm askin' b'cause I think that the reserved Byte in the Color Pool is transparency...
- Alhexx
glColor4f(Red, Green, Blue, Alpha);
Alpha is the transparency level.
Of course, *any* glColor4? command works for alpha.
However, you also need to enable blending
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
...is the best setup for straight transparency.
However: do note, if you're doing proper transparency, the polygons *do* need to be drawn in depth order. IE: When you draw a transparent polygon, all the polygons "behind" it need to have been drawn already, so OpenGL can calculate what the new polygon you're drawing will look like.
ohh.. and btw.. thnx for the greet in the readme :)
- Alhexx
Hey, Fice, I've tried out the Alpha Channel, it worx pretty cool...but take a look at this:
http://alhexx.tripod.com/apps/ff7/snow2.gif
tulkk: Yo, u can dl it now. (tripod has renamed the file 'ultima027ß2.zip' to '2.zip' - I wonder why? - ah, tripod doesn't like these ß signs)
BTW: I've released the third ßETA
- Alhexx
BTW: Hey, Fice, how's Ficedula pronounced correctly? :-?
[This message has been edited by Alhexx (edited June 14, 2001).]
- Alhexx
BTW: Now I'm a Fast Newbie - I got rid of those yellow stars...
The proggie is coming along great, i'm impressed.. i mean were do you get the motivation and maybe more important.. the time to dev this proggie?
I can't wait til you add support for full model exporting (viewing/editing).. hehe.. :wink:
I think it's time... *cough* there's another god in the FF7hacking heaven.. Qhimm.. Fice.. make room for Alhexx up there..
and now.. let's gather around the camp fire sacrifice a herd of cute little mammals in front of it to celebrate :wink:
[This message has been edited by halkun (edited June 15, 2001).]
darkness: Hmm, strange...I have never had this error...when exactly does the error occur? If u tell me, I probably be able to help you...
halkun: WHAT? :x
Hey, I have the yellow color since about three weeks...before I had neon green (Qbasic-Color 10) that' looked...well...okay
To my Desktop: I've got a picture of Katie Price...
- Alhexx (@ School)
BTW: First an info: I'm livin' in Germany. And I've got one question: Has FF9 PC been released anywhere in th world? (Japan, UK, USA?) Any release dates or sth?
- edit -
Square wanted to release FF9 PC in Germany in February, but they didn't...and there'r no news from then on...
[This message has been edited by Alhexx (edited June 15, 2001).]
[This message has been edited by The SaiNt (edited June 15, 2001).]
How do you pronounce Ficedula? Hmmm. Well, I pronounce it:
Feece-uh-due-la
but my parents pronounce it
Fee-sed-du-la
Take your pick :) My mum speaks Latin (well, more than I do) so she might be right ... but I like my way better anyway :D
darkness: Alright, I'm going to have a look on that...
tulkk2: I think I've got to add something:
Ultima 0.27 ßETA 4 is just a viewer 'till now - it hasn't got any editing options 'till now, but I hope I'll add these in one of the next three version (maybe this weekend - I'll have much time on saturday :))
SaiNt: R & D Person? :-? (Who?)
halkun: i don't wanna get offtopic.. just one little question.. you sure knew alot about the psx.. ever dev'd for it?
Alhexx: I don't *think* he's done any deving. At least, if he did, he never told us about it. He *did* work on one little document though. :wink:
[This message has been edited by Srethron Askvelhtnod (edited June 15, 2001).]
Edit: Ah, Halkun was the guy who wrote that document? Impressive :) I got a copy of that doc about a year ago but I never made the connection between Halkun and the author of the doc.
[This message has been edited by ficedula (edited June 16, 2001).]
If that's really the reason, I think I can't help you...because Ultima has got to read out the coords as floats...
others: I still don't know who's this R & D person...
- Alhexx
- edit -
Fice, how can I change the thickness of dots created by the gl_POINTS command ?
- edit 2 -
Just wanted to mention that 'U027ß5' is released.
[This message has been edited by Alhexx (edited June 16, 2001).]
mirex: Sounds interesting - I've downloaded it and I'm gonna try it out...
- Alhexx
I wish I had 3ds Max. But im not gonna spend 800 dollars on a program like that.
Has anybody else out there an idea what the heck this error is? Or has anybody else this error?
- Alhexx
- edit -
mirex: Yo, I've tested your 'extractor-converter' - cool. I've converted tifa's field model but I didn't recognize any colors in MAX... (Do I need glasses?) But hey, If u keep on workin' on it or even program a workin' 3ds/3df-to-p converter you could become serious competetion 4 me :wink:
[This message has been edited by Alhexx (edited June 17, 2001).]
someone have any settings suggestions for the setup thing?
3D Filter Quality: Automatic
Alpha-Blending: Automatic
Glide Splash Screen: Disable
Depth Precision (16 Bit): Fast
Level of Detail Bias: 0
Limit Texture Memory: Software Controlled
Maximum Buffered Frames: 1 Pending Buffer
MIP Map Dithering: Disable
Triple Buffering: Disable
Vertical Sync: Disable
- Alhexx
- edit -
mirex 1: My name's written with double 'x' - not with double 'l' :wink:
mirex 2: If you're interested in it - I'm workin on 3DS MAX 3.1.
[This message has been edited by Alhexx (edited June 18, 2001).]
But yeah, Halkun's the guy. I guess now I and SaiNt have the right to feel horrified. :wink:
[This message has been edited by Srethron Askvelhtnod (edited June 19, 2001).]
Wait...
What am I supposed to be terrified about again?
And about that problem with colors - I think i fixed that problem, I have set ambient light to light gray so colours should look better now. Try to download it and run it again please.
- Alhexx
what on earth are you talking about?
No Update for 8 days, but now there's a new version of ultima available. I've added an option to save the models. I hadn't had enought time to test it properly, so it'd be fine if someone could give me a feedback.
BTW: I've found some smileys on the web: http://alhexx.tripod.com/smile.html
- Alhexx
- edit -
DAMNIT :x
Forget 'bout these smileys, tripod doesn't want to view them...
[This message has been edited by Alhexx (edited June 24, 2001).]
BTW: I think I'll have to change my web server...
- Alhexx
This time I've added the converter options (w/ new annoying message boxes :wink:)
- Alhexx
Mail the logfile to me, so I can take a look at it.
- Alhexx
- Alhexx
BTW: We're moving up to the 200 members border :wink:
Check if the app crashes after 'Beginning Triangles-Mode..." or after "Drawing Triangles..."
BTW: Do you have the newest OpenGL drivers? If not, try to download them anywhere...
BTW 2: Why don't u finally register? U'r postin' much, so...
- Alhexx
Darkness: Sorry, for not replying so long, but I couldn't - I had no internet connection. I'm going to release the source code of the viewer, so you can program a little bit. Perhaps you'll find the error faster than me...
- Alhexx
- edit -
I've uploaded the source for p preview.
Maybe you'll take a look at it, Darkness...
[This message has been edited by Alhexx (edited July 28, 2001).]
glColor3f ColorR(PolyP2(n%) + value3 * 2) / 255, ColorG(PolyP2(n%) + value3 * 2) / 255, ColorB(PolyP2(n%) + value3 * 2) / 255
Darkness: Try this:
glColor3b ColorR(PolyP2(n%) + value3 * 2), ColorG(PolyP2(n%) + value3 * 2), ColorB(PolyP2(n%) + value3 * 2)
The colors should get screwed up, but it should work...
---------------------------------------------
Hey Fice: OpenGL-related question(s):
How do I put textures on the model?
I've had a look at some files, and I think that value3 could have anything to do with textures, but I'm not sure...to find it out, I'll have to know how to handle textures under OpenGL.
Oh, and BTW: How do you view the .tex files? Converting 'em first to .bmp format and then view them? Or view them directly? Is there any Option for viewing/converting the files in your ficedula.dll or ficeconsole.dll?
- Alhexx
- edit -
Corrected OpenGL-Syntax for Darkness
[This message has been edited by Alhexx (edited July 29, 2001).]
First of all you need to get some "raw" texture data into your program. It's up to you how you're going to do that ... not sure how VB'll work. Delphi can do it easily from BMP files for you.
Then, upload it to the video card using glTexImage2D. Note: Width/Height must be powers of two (2,4,8,16,32,etc).
Enable texturing with
glEnable(GL_TEXTURE_2D);
For each vertex, specify the texture coordinate (which position on the texture image to use) with glTexCoordinate. Works a lot like glColor. You can still (and should) specify a colour with glColor as well; it'll be blended into the texture. Specify white to leave the texture unchanged.
Hopefully that's all you need to use simple textures.
To use multiple textures at once you need to use texture bindings. You can do that using
glGenTextures
to create a new "texture object".
and
glBindTexture
to activate a texture.
Basically, say you generate two texture bindings, T1 and T2.
If you did
glBindTexture(T1);
glTexImage2D(....., SomeData1, ...);
glBindTexture(T2);
glTexImage2D(....., SomeData2, ...);
Texture T1 would contain the texture data held in SomeData1, T2 the data from SomeData2.
When you wanted to draw polygons using texture 1, just do
glBindTexture(T1);
to activate it, and so on.
Once you've finished with a texture, use
glDeleteTextures
to remove them.
That's the *basics*. You should really look at a proper tutorial if you get any problems.
How to get at TEX files? My LGP tools can convert them to BMP's easily. There's a Delphi unit on my website (PSXTex) that contains the code I used to do it, if that's any help.
i guess it is also too complex for poly3. oh, and was the b instead of an f on purpose? I tried it both ways.
Fice DLL: No need for now. I'll use your tex-to-bmp converter temporary...first I just want to check out, if my supose is right, that value3 has got to do with the textures (well, I'm quite sure...)
Darkness 1: The b means Byte; f means Float
Here's how the OpenGL commands are put together (AWAIK, Fice knows it better...)
glcolor3f - Type of arguments (float, nteger, ...)
| |
| Number of following arguments
|
Command
Dakrness: hm, interesting...
- Alhexx
If the expression's too complex,
a) VB is crap
b) Work out some parts in advance and assign them to their own variables. Then just do
glColor3f(RVal, GVal, BVal);
...having stored the values in their own variables, so each line is simpler.
Fice 2: What do you mean talkin' 'bout 'raw' data? Only the RGB values?
I've read the MSDN (MicroSoft Developer Network) 'bout OpenGL. There was an example for how to decode a DIB image for OpenGL. But the Source was for C++...
So it'd be nice if u could wirte a DLL that reads out the 'raw' data out of a BMP or better TEX file...
I think I could programm that myself, but the result of programming it under VB would be REAL SH*T... :D (that's u'r opinion, too, heh ?)
BTW: take a look at that new .p format topic...
- Alhexx
I'll see if I can cram some of my functions into a DLL for you.
Other topic: Took a quick look. Progress Is Good! If you dig anything else up post it; eventually I'll get around to updating the docs on my website...
code:glColor3b ColorR(PolyP1(n%) + value3 * 2), ColorG(PolyP1(n%) + value3 * 2), ColorB(PolyP1(n%) + value3 * 2)[/quote]
glVertex3f VertX(PolyP1(n%)), VertY(PolyP1(n%)), VertZ(PolyP1(n%))
glColor3b ColorR(PolyP2(n%) + value3 * 2), ColorG(PolyP2(n%) + value3 * 2), ColorB(PolyP2(n%) + value3 * 2)
glVertex3f VertX(PolyP2(n%)), VertY(PolyP2(n%)), VertZ(PolyP2(n%))
glColor3b ColorR(PolyP3(n%) + value3 * 2), ColorG(PolyP3(n%) + value3 * 2), ColorB(PolyP3(n%) + value3 * 2)
glVertex3f VertX(PolyP3(n%)), VertY(PolyP3(n%)), VertZ(PolyP3(n%))this seems to work for most of it. except parts of yuffies face are blue and green. the hair is alright though.
Darkness: That's quite good. I'll look if I can finish this way of vierwing models in ultima...
- Alhexx
glColor3f ColorR(PolyP1(n%)) / 255, ColorG(PolyP1(n%)) / 255, ColorB(PolyP1(n%)) / 255
If this worx, download Ultima 0.27 BETA 12 and that should make u happy :)
- Alhexx
i did learn more though.
GlColor3b only works w/o the /255 because that makes the expression too complex.
GlColor3f doesnt work with or without the /255.
the code i posted earlier only seemed to screw up on skin color.
glColor3s ColorR(PolyP1(n%) + value3 * 2) * 128, ColorG(PolyP1(n%) + value3 * 2) * 128, ColorB(PolyP1(n%) + value3 * 2) * 128
This one *should* work, b'cause it uses shorts, no floats...
BTW: Try downloading Ultima and run this one...
- Alhexx
- edit -
And if this doesn't work, try making an CLng() function on every color...understand me?
example:
glColor3s CLng(ColorR(PolyP1(n%) + value3 * 2) * 128)
I guess that could make the expression too complex, too, but try it...
[This message has been edited by Alhexx (edited July 31, 2001).]
[This message has been edited by Alhexx (edited July 31, 2001).]
The 'F**k Error 16 Mode' of Ultima worx quite fine on my comp; no mixed up colors...
- Alhexx
I'll have a look at my source and I'll compile a special version 4 you.
What's your mail, so I can send it to u?
- Alhexx
- edit -
Fice: How 'bout this DLL?
Fice: What format has that 'raw data' got to be? A Sting? An OpenGL Type?
[This message has been edited by Alhexx (edited August 01, 2001).]
Raw data ... is raw data. Like, no format. Raw. Data without format. Data. Raw. Raw data. No format.
Ahem! Basically its a collection of data. You specify which 'format' you want it to be in - 1 byte per colour value, or whatever - and pass in a massive great block of the stuff.
BTW, what's the VB declaration of glTexImage2D? I don't know how VB handles the GL data types.
Fice: Raw data, no format? I mean, when I've got to declare a variable, which variable-format (string, integer, floats, ...). I guess it should be hard to init a variable without format (well I could use that 'Variant' Type...)
glTexImage2D: I'll take a look at it. I'll post in 'bout one hour (perhaps earlier, perhaps later)
DLL: Thanx.
e-Mail: I had to change my mail address, b'cause usa.net wanted me to pay for the account. I think I'll change my address the next time...
- Alhexx
"C:eye.bmp"
I've had a look at that source (I've got Borland Delphi 2 installed) and saw a constant called 'FICE_FREAKY_NUMBERS' :wink: ?
I think I'll spend a lot of time on workin this DLL, but I'm sure, I'll find a way...
Oh, and here's the declaration of glTexImage2D:
glTexImage2D (target As glTextureTargetConstants, level as GLint, internalFormat as GLint, width As GLsizei, height As GLsizei, border As GLint, format As glTIFormatConstants, Type As glPixelTypeConstants, pixels As GLvoid)
- Alhexx
- edit -
Here's how I declared the GetBMPPointer function:
Declare Function GetBMPPointer Lib "Ficetex.dll" (FName As String, Width As Integer, Height As Integer, DataPointer As GLvoid) As Integer
- edit 2 -
I think I know why the files can't be found (Fice: "VB is Crap").
VB handles Strings between two "s. example:
"VB is Crap"
Delphi (and many others) use 's. example:
'VB is crap'
- edit 3 -
I was just browsing the net, searchin' for VB-Delphi tuts and I found sth. like a PChar function that converts Strings to PChars. Could u implement such a function into that DLL: I've tried to implement it and run, but a file called 'cappa.pas' (or sth. like that) was not found...
[This message has been edited by Alhexx (edited August 02, 2001).]
My DLL expects you to pass it a null terminated string. I know VB *can* do that because all the Windows API functions that use strings expect null terminated strings. So, however a Windows function that uses a string is declared in VB - that's how you have to pass in your string to *my* DLL.
uh, yeah, the FICE_FREAKY_NUMBERS result was for when you passed in a dodgy number. Except the final version of my DLL never accepted numbers, just filenames, so not needed :D
However you're right in that the *standard* way VB handles strings *isn't* the same as most programming languages (it defaults to Wide [unicode] strings, most languages use ANSI.)
Hehe, forget 'bout this string-pchar-problem...
I've forgotten sth. in my declaration:
Declare Function GetBMPPointer Lib "Ficetex.dll" (ByVal FName As String, Width As Integer, Height As Integer, DataPointer As GLvoid) As Integer
Now I'm not gettings 1 anymore.
- Alhexx
Originally posted by Alhexx
Declare Function GetBMPPointer Lib "Ficetex.dll" (ByVal FName As String, Width As Integer, Height As Integer, DataPointer As GLvoid) As Integer
Honestly, I don't like the way VB defaults to pass by reference.
In fact, I'm not happy with a lot of limitations in VB.
Sorry if it offends anyone though.
The REAL problem is that when you pass a VB string by value, it doesn't just pass it by value. It also converts it to another format!
Specifically, a PChar (null-terminated single byte string), which is the standard.
The real question is: If VB is going to support this type (which it needs to, for the Windows API), which is different to IT'S own String type, why the **** doesn't it make it a separate datatype? It's hardly intuitive that passing Strings by value actually converts them to a whole different data format...
Actually, that's one problem. The MAIN reason I don't like VB is that it isn't fully OO. And that just kills it dead as far as I'm concerned. No objects=crap.
However VB7 is supposed to add full OO. Then there's just all the other problems to sort out...
Bad News first:
I can't get your DLL running correctly. I've found a source code that handles textures (also reads out BMPs and converts them into textures).
When I try to use Get***Pointer command, I'm having probs with the DataPointer Variable. The glTexImage2D tells me, it wants a variable (but I give him a variable...)
The Get***Data commands don't work very fine under VB - it mostly crashes when reading out the Data. I've also been able to commit a BSoD. :D
Good News: Like I said, I've found a source, that reads out BMP and TGAs. I think with this source, I'll be able to read out TEX files myself (I've programmed a function that reads out 8-Bit BMPs). I'm going to have a look at the TEX format. I guess these TEX files are 8-Bit, too. So they've got to have a palette, too, right? I've had a look at your source, and I'm going to try reading out the TEX files tomorrow. But perhaps I'll need your help... (as always...)(Am I already annoying you?)
- Alhexx
I'll certainly give you any help you need - except I'm away on holiday for the next week, so no net access. After that, sure.
(At least now you have my opinion...not that it was asked for...)
dagsverre: Yes, yes, I know...VB is crap...and u'r right. Like I mentioned before, I'm going to learn another language like C++ (Visual C++ 6, b'cause I#ve got the MS Visual Studio 6 Package). But I'll need a book to learn it. I've started programming in QBasic, then I changed to VB 4. I teached myself how to program. Then, finally, 'bout 3 months ago, I've bought a book 'bout VB6...that's why I'm able to program sth. like Ultima in VB. I've also got Borland Delphi 2 (AFAIK Version 5 is already available ?)
But C++ is much more complicated and I don't think that a few downloaded tuts will do this job.
So: VB IS crap...but it's EASY... :wink:
- Alhexx
I'd say go for Delphi. It's not as powerful as C++ but it goes a long way and is almost as user-friendly as VB. There's not all that much new between Delphi 2 and Delphi 6 (6 was just released), but I know you can pick up free demos of the newer versions from magazine cover CDs and the like. There's also a trial over at borland.com, it's the same program but it might be time limited (not sure, just know that you can create programs with it).
Of course, since you have already started programming in VB I guess you should stay there until you start on a new program...
OK. I'm going to the shop.
When I get back I will begin some-sort-of-a-private-project. What I mean is I'm going to begin to make those 3dmodels look better!! Anyone catching up? :wink:
As soon as I do something i'll post it up, ok?
Now pleeeeeeeeeeeeeeasee somebody ecplain me what is going on in the FF7Remake project? I don't know if I should begin my project or not, cause If someone is aready doing this I don't wanna do it, OK?
I hope you read this before beeing on holidays.
Good News: I've been able to program a function that reads out TEX files. It worx pretty fine, but I'm having one question to these multiple textures:
When I use multiple textures, do I have to end my current GL_TRIANGLES before changing to another texture?
example:
glbindtexture ... Tex1
glbegin GL_TRIANGLES
.
. Triangles with Tex1
.
glEnd
glbindtexture ... Tex2
glbegin GL_TRIANGLES
.
. Triangles with Tex2
.
glEnd
I know some of the commands listed above aren't correct, but that's not the problem.
If I try to change the texture within one of these GL_TRIANGLE blocks, the textures aren't changed. But if I change em like listed above, it worx.
- Alhexx
[This message has been edited by Ged (edited August 06, 2001).]
Skillster: Heh? Could u translate this into 'real' english?
Ged: vegetto5@wp.pl? Poland? He, I'm from Poland, too.
Ged 2: 2 hours per day? Hm, I guess you've got to really convince 'em. (My comp was running 10:37:56 yesterday :D - without reboot!)
Ged 3:
Milkshape: You can't load 'em via 'Open File'. You've got to import them. ('File/Import/RAW' - or sth. like this...)
Whole Models: Bad News: 'till now, you've got to put the models manually. I'm currently workin' on a Version that reads out hrc files and puts the model automatically...but this is going to be hard...I've had to put the Tifa model toghether manually, too. Then I added some 'crappy' textures (milkshape doesn't work with these OpenGL Colors like Ultima does)
Well, I'll send some Tifa/Yuffie models to ya, you can have a look at them...
- Alhexx
BTW: Yeah, my first topic and 200+ replies :) :D :)
- edit -
Ged: You could have a look at this, too:
http://sklad.host.sk/ff7tool.rar
I guess I've got to mention that it's from mirex...
[This message has been edited by Alhexx (edited August 06, 2001).]
Curses! I want it now!
Ps..good work every one. I dont have a clue what you are talking about. That must be a good sign.
[This message has been edited by Sir Canealot (edited August 06, 2001).]
Originally posted by Sir Canealot
stamps feat and waves arms
Sounds funny, but what does that mean?
Fice: I've found a funny bug in his tex2bmp and LGPTools TEX Viewer...
- Alhexx
- edit -
Oh, I've forgotten why I was postin':
Released Ultima 0.27 BETA 13.
And I've published my PGP Key, so if someone wants to mail me and uses PGP, too: we can communicate encrypted now...
[This message has been edited by Alhexx (edited August 06, 2001).]
OH S***M****F****** :x!!!!!! Now I remember!!! (i didnt use Photoshop for years..) hahahah!!
"Sephiroth Cave 2.0 alpha" come here..
Oh yes. For those who care for my non-sense work look at a preview (watching this image might end up in throwing up and other digestion problems) :
BEFORE : http://strony.poland.com/songo12/SephirothCaveBefore.jpg
AFTER: http://strony.poland.com/songo12/Sephiroths-Cave-2-alpha.jpg
Alhexx - why gmx.de if you're polish?
BTW. Thx for models. Give me few days to learn MilkShape and finish my current project (which suxx of corz) and I will tamper with the models. Eeeww... Did you make the face skins?? :D :D :D
PS. JUST FIXED THE ROOTS!!! YEY!!! Check the screenshot above (updated)... (hah. no one except the saint saw the bad version.. ouef! :D :D :D)
Before : http://strony.poland.com/songo12/SephirothCaveBefore.jpg
After : http://strony.poland.com/songo12/Sephiroths-Cave-2-alpha.jpg
Alhexx, why gmx.de if your Polish?
Well, give me some days to learn MilkShape3D and to finish my current project and I will start to tamper with the files you gave me..
Sephiroth XII over and out
My roots are in Poland, but I'm livin' in 'Germany.
Milkshape: I guess it's quite easy to learn the basics of Milkshape. (I mean it won't take as long as you would need if u wanted to learn 3DS MAX :wink: )
BTW: Had a look at those cave graphix - looks good
- Alhexx
- edit -
Sorry, saw this question 'bout the face skins now...
Yes, there's no way to export the OpenGL colors into working textures, so I had to make 'em manually. (laughing 'bout snow's face texture - it's really shi*ty :D )
[This message has been edited by Alhexx (edited August 06, 2001).]
Sephiroth XII
darkness: Haven't you recieved my mail? I sent a special version to ya....If not, I'll send it one more time.
- Alhexx
- edit -
Corrected time
- edit 2 -
Ged: Have you checked your ICQ? I'm waiting for your authorization to add you to my list
- edit 3 -
darkness: I've send the (censored) source of Ultima to ya.
[This message has been edited by Alhexx (edited August 07, 2001).]
IMPORTANT
The SaiNt - Your Sephiroth Patch
How to fix some things?
1) Hair
Clouds hair uses 1 .p file, Sephiroth's, 2.
Load both Sephiroths hair-files (using all Alhexx's tools) and join them into one .p file (after the whole converting.. (if it works)) and then upload to the .lgp file. And make a new patch.
2) Sephiroth - Cloud, and Cloud - Sephiroth
Change all "Sephiroth" to "Cloud" in flevel.lgp
End of ideas.
Fixing Sephiroth Limit Break Anim.
From what I heard each character has his own set of animations for particular moves. So to fix Sephiroths anim, put/change to his file Cloud's Animations for things that Sephiroth doesn't have. (Edit Cloud's, copy, paste to Sephiroth's..) Sounds pretty easy but I bet it isn't..
As for giving him limits that's a whole different story. No easy way around that.
I bet lot's of people except me wait for that..
What about the anim/summons, in readme the anims sounded tough, but summons quite easy. It would at least make him some stronger LB's...
- Alhexx
darkness: acceleration: Not sure. Perhaps that's the point...I'm workin on a TNT2, and every comp I've tested it on was running with a TNT2, too. I think you've got to ask Fice when he's back - he's the king of OpenGL.
- Alhexx
The best way to find it out is to test it.
- Alhexx
OK. Another thing.
When unpacking those .lgp files i get lots and lots of files with names "BKHA.p" etc.
How do I know which one is for what?
Alhexx: OpenGL acceleration: The MS OpenGL DLL's SHOULD provide software rendering for any situation when the main gfx card can't accelerate rendering.
Textures: Yes, you can't change textures in the middle of polygon rendering. There's only a fairly limited selection of things you CAN do while rendering polygons; change colour, texture coordinates, transformations (Translate, Rotate, Scale), and so on, are all ok; most "major" changes (change active texture, viewport parameters, etc) aren't.
Fice: Okay, I guess that shouldn't be THE problem...now I've *only* got to find out, which vertexes have got textures...(oh damn)
Ged 1: Sephiroth 3D extract? What do you mean?
Ged 2: Yeah, take a look at these *.hrc files. If you're searchin' for a character, then use LGPTools' search option (works pretty good). As for the Battle.lgp - there are no hrc files :(
Fice: Have you ever tried to view a file named 'dfx.tex' from the field.lgp? Try it - it has got 400+ colors :wink: - too much for your 256 color palette...
- Alhexx
- edit -
BTW: I'm going to start my 'Battle.lgp File Database' today...that's going to be a hard piece of work....
[This message has been edited by Alhexx (edited August 12, 2001).]
- Alhexx
dfx.tex: I'll take a look. I AM spending most time now on the Remake, though, rather than programming FF7 tools...
THE problem is, that I can imagine from which model this part is. I also don't play a lot FF7 the last time, so I rarely remember the enemies...but the most important models should be discovered. (my Ultima Weapon Model :( not)
Well, I hope it will help the ppl out there anyway...
- Alhexx
Heh. His second hand had a flower basket (???)...
Now I'm working on the battle model extract.
B'out your pic: I can't view it - Server not found...
- Alhexx
- Alhexx
Just wanted to post this, to tell u, that the version of ultima, with which I checked the .p files for the Battle.lgp Database had a TERRIBLE BUG!
That's why there are so many corrupt files!!!
I'm going to update the database tomorrow!
I'M SORRY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- Alhexx
BTW: Wanted to test this 'Signature Fucntion'
- Alhexx
(Grose ey :)
- Alhexx