Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 11:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



FlyFF Import/Export Tools for 3dsMax

Discussion on FlyFF Import/Export Tools for 3dsMax within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1
Received Thanks: 0
FlyFF Import/Export Tools for 3dsMax

Hello. The one and only GlaphanKing here.

As most of you know, I am building a script to import models to max, edit them and then export them back as originally used or how ever you want. Since I am more of a programmer and not a 3d programmer, I would like some advice and or help.

My biggest wall has been bones and animating them. I can import every single mesh file (o3d), but the bones (chr) and animation (ani) are giving me problems.

I will gladly hand this tool out to everyone once its completed but I sadly can't get this part right.

If anyone has experience with max or even how the files work, please post it here and I will hopefully get this working.

I can offer you all this early version to get mesh files to load as well as their textures to display. Except for Clockworks. Its texture is wrong for some reason.



Don't worry, the file is clean but the script itself is encrypted until its release. if you want to look at my problems here is the parts that need fixing.

Code:
on btnChr pressed do
		(
			chr = ClsBoneData()
			f = getOpenFileName caption: "Import Bones" types: "Bone Definitions(*.chr)|*.chr"
			version = undefined
			ReadCHR f &chr &version
			
			
			CreateArray &BoneSet chr.BoneCount
		
			For I=1 To chr.BoneCount Do
			(
				if chr.Parents[I] != 0 Then
				(
					BoneSet[I] = BoneSys.CreateBone (point3 0 0 0) Z_Axis Y_Axis
					--BoneSet[I] = BoneSys.CreateBone pos1 pos2 Y_Axis
					BoneSet[I].name = chr.Names[I]
					BoneSet[I].width = 0.05 as Float
					BoneSet[I].height = 0.05 as Float
					BoneSet[I].Parent = BoneSet[chr.Parents[I]]
					BoneSet[I].transform = chr.TM[I] * chr.LocalTM[I]
					--BoneSet[I].pos = chr.TM[I][4]
					--BoneSet[I].length = distance BoneSet[I].Position BoneSet[chr.Parents[I]].Position
				)
			)
			
			For BoneID = 1 To chr.Names.Count Do
			(
				obj = getnodebyname chr.Names[BoneID]
				if obj != undefined Then
				(
					obpar = obj.parent
					if obpar != undefined Then
						obj.length = distance obj.pos obpar.pos
				)
				
			)
			
			
		)
		on btnAniImport pressed do
		(
			f = getOpenFileName caption: "Import Animation" types: "Animation (*.ani)|*.ani"
			
			ReadANI f &Animation
		/* 			
		* 			For BoneID = 1 To Animation.BoneData.names.Count Do
		* 			(
		* 				obj = getnodebyname Animation.BoneData.names[BoneID]
		* 				if obj != undefined Then
		* 				(
		* 					If Animation.BoneTM[BoneID] == undefined Then
		* 					(
		* 						tm = Animation.BoneTM[BoneID]
		* 						
		* 						For FrameID = 1 To Animation.FrameCount Do
		* 						(
		* 							rot = obj.rotation - Animation.BoneFrame[BoneID][FrameID].Rotation
		* 							trans = obj.position - Animation.BoneFrame[BoneID][FrameID].Translation
		* 
		* 							animate on
		* 							(
		* 								at time FrameID (obj.pos = trans; obj.rotation = rot)
		* 							)
		* 						)
		* 							-- get each translation keyframe
		* 							 anim_keys = #()
		* 							 for i in obj.controller.position.controller.keys do append anim_keys i.time
		* 							
		* 							 -- get each rotation keyframe
		* 							 for i in obj.controller.rotation.controller.keys do append anim_keys i.time
		* 							
		* 							 -- store the bone transform for every frame there is a key
		* 							 anim_transforms = #()
		* 							 for i in anim_keys do 
		* 							(
		* 							  at time i 
		* 								(
		* 									if obj.parent == undefined then 
		* 									(
		* 									  -- world space transform
		* 									  append anim_transforms obj.transform
		* 									) else (
		* 									  -- parent space transform
		* 									  append anim_transforms (obj.transform * inverse obj.parent.transform)      
		* 									)
		* 								)
		* 							)
		* 							print anim_transforms
		* 							
		* 							For J = 1 To Animation.FrameCount Do
		* 							(
		* 								at time J ( if obj.parent == undefined then obj.transform = anim_transforms[J] else obj.transform = (anim_transforms[J] * obj.parent.transform))
		* 							)
		* 							
		* /* 							For FrameID = 1 To Animation.FrameCount Do
		* 							(
		* 								animate on (  at time FrameID ( if obj.parent == undefined then obj.transform = anim_transforms[FrameID] else obj.transform = (anim_transforms[FrameID] * obj.parent.transform ) )
		* 							)
		*
		* 					)
		* 				)
		* 			)
		*/
			
		)
I hope this gets fixed soon. Its making me want to stop this project.
GlaphanKing is offline  
Old 12/02/2011, 08:36   #2
 
elite*gold: 2
Join Date: Jul 2009
Posts: 1,447
Received Thanks: 922
Nice one guy

But, Cola.exe do same o.o
.Crasy is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
Gb <-> Blender/3dsmax export with working bones
10/12/2011 - Kal Online - 12 Replies
topic can be closed. i have a fully working gb -> 3dsmax importer and 3dsmax -> gb exporter, which supports texture and animations and bones ;) that means i can add graphics from other games or designers to ryuu!
S4 Resource VIEWIER (only export, not import)
08/28/2011 - S4 League Hacks, Bots, Cheats & Exploits - 15 Replies
Hi to all ElitePvPers, a lots of time ago i found an s4 viewier (it has also the import function but for me it doesn't work). I've found the dimension of the font (2002_8, 2002_10,2002_12, 2002_15,2002_20) so i think it can be usefull for someone... How To Use: simply put all the 4 file on the s4 directory (for me C:/Programs(x86)/Alaplaya/S4League) and open "S4LResource.exe"...i don't know other =| Sorry for my bad english, i'm ITA if i help you press thanks button, it's free =D ...
[VTUT] Import/Export gr2 files in 3dsMax7 & .eix .epk [ent]packen
12/04/2010 - Metin2 PServer Guides & Strategies - 111 Replies
Das ist mein erster Guide Hier seht ihr wie ihr: - die .eix .epk Dateien packen/entpacken könnt - die .gr2 Metin2 Model Files in 3ds Max importieren und wieder exportieren könnt. Das modeln der Waffen müsst ihr selber machen. Das kann ich auch noch nicht. Programme die ihr braucht:



All times are GMT +2. The time now is 11:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.