Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Vertexdata animation

Author
Message
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 14th Jan 2012 21:57
@Resourceful

Yes you're right, we can protect our media and use a function to decrypt our objects. Another way would be to include all media in the main exe.

Cheers.

I'm not a grumpy grandpa
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 14th Jan 2012 22:06
I tried to do that with one project
I was using DBP rc7 and it would not do that

but the latest test I did with DBP 7.61 it did add in the files
which i am glad to know

but just encase DBP will not do one peace
it would be nice to have anther option

to move side ways - is to move forward
Since a Strait line gets thin fast
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 00:09
Resourceful
I haven't try with U77 yet, as I decided to uninstall it. I made time ago some encryption to my media in the same dbo. Take a look to the exe and try to open the object to use it in your project

Cheers.

I'm not a grumpy grandpa
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jan 2012 01:29
lol!

The texture being in data statements was not part what i was suggesting in any way and was only done to give you a dbpro file with media built into the dbpro file.

But thats ok i will finish the demo... create a vertex animation.... save both the texture and animation into the dbo file as a single memblock.

@resourceful If you would like i can show you how to dump anyfile including a dbo to a memblock and then recreate it. This way you can hide files or create even wad files with everything in 1.

I will add this to my code aswell.

I will post when done

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 01:38
SMD_3D Interactive

Just one thing ...could you please rar your last Modelprops update...I have been trying to download from your site, and four times corrupt

Thanks.
Cheers.

I'm not a grumpy grandpa
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 15th Jan 2012 02:49
@chafari

I was able to look the dbo file
the only thing in the dbo loader I made the caricature was 80 percent flat
in the other program normal 3d with movment

@SMD_3D Interactive

I would like that , I know a lot of people ask for things to be made for them
I like to look at what people of dun and figure it, but once in a wile
getting some one to give the pointers rile helps

I know wad files are zip files with a different extension name
when I find a file I do not know much about I know to use the WordPad
since it dose not mess things up like notepad dose

@chafari

I've been able to download from "SMD_3D Interactive" with out any problems so far even from the forum post , it worked perfectly

I know in one of the post he said about uninstalling before installing
naaa , I just install over and have had no problems


from what I can tell vertex commands will permit me to do a lot of things
with the help of memblocks

I've got soo many projects that they can be used in,
but I am not getting enough of the flavor to wore with it as of yet ,
but the peaces are becoming more comfortable

to move side ways - is to move forward
Since a Strait line gets thin fast
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 03:22 Edited at: 15th Jan 2012 03:36
@Resourceful
Quote: "I was able to look the dbo file "


It hast not only scale but aswell offsetin all limbs, so if we don't know the way to go back, the object is not good for anybody.


I'v got the vesrsion 1.23 .....could you rar the last Model Props 1.24 file ?

Cheers.

I'm not a grumpy grandpa
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jan 2012 03:42
yeah i can do that.....

This example im doing for ya does not use model prop however.

1.24 has some good fixes...and of coarse there is more to come.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 03:47
There's no way to download it !! all the time corrupt .

Cheers.

I'm not a grumpy grandpa
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 04:32
In February 2010 I put this piece of code in the Dbpro challenge. The animation is made in real time.







I'm not a grumpy grandpa
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jan 2012 06:59 Edited at: 15th Jan 2012 07:15
@chafari The download link in the forum also has a .rar just for you to try :p

Hopefully it works as it seems that the zip file is fine on my end.

Nice Animation BTW!


Ok here is the example i was gunna make for you guys....hopefully some of it makes sence....cheers



some of the code was only used to create the data statements...

(do not need any media but i suggest you put in in a folder)


the code does this:
-reconstructs a texture from data statements
-creats a vertex animation
-stores both animation and texture into a dbo file
-constructs a new file format to hide the dbo extension and add extra data

-thats it

Hopefuly it helps to understand the memblock usage a tad better...

gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 15th Jan 2012 10:18
@chafari

I e-mailed you rar I converted from the zip
I even ran it on my end and it worked

@chafari

that example Posted: 14th Jan 2012 15:32
looks like it was very complicated to put together
but it gives me more info to work with

@SMD_3D Interactive

thanks for the Posted: 14th Jan 2012 17:59 example
when I loaded up the created dbo the cube did show up
but not texture or the animation part

one day I will have full understanding like you
but this gives me some thing to play around with

to move side ways - is to move forward
Since a Strait line gets thin fast
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 12:46
Quote: "when I loaded up the created dbo the cube did show up
but not texture or the animation part "


I'm in the same boat...no animation or texture in the saved dbo
Thanks anyway for your work SMD_3D Interactive

Cheers.

I'm not a grumpy grandpa
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 15th Jan 2012 12:52
@chafari

I think "SMD_3D Interactive" basic thought is that
unless you have the code built into your program

no one else can use the media

to move side ways - is to move forward
Since a Strait line gets thin fast
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 13:19 Edited at: 15th Jan 2012 13:23
@Resourceful
If animate our models by script into Dbpro, no one can us the media files unless they have the knowledge to make the same code or similar. That is a way to encrypt somehow our media, but when I animate with vertexdata, I do it just to work only with Dbpro commands and not use any external program.

Here's another vertexdata sample.





Cheers.


I'm not a grumpy grandpa
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 15th Jan 2012 14:21
@chafari

that's what I thought
I have found a few games over time ware they have encrypted the objects
so they can even be looked at , this gives me a much better idea how they do it

there will be same games I have in mind ware I will not encrypt any things
as I want the user to be able to make there own objects for the level being played either by them or others

but at least I can protect the peaces I want for as long as I can

to move side ways - is to move forward
Since a Strait line gets thin fast
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jan 2012 17:00 Edited at: 15th Jan 2012 19:18
you guys cant see the texture?

humm works fine for me.

Make sure your graphics card is in 32 bit display mode or it will not work as the image memblock is saving a 32 bit image.

Ill make a video of what it should look like

-
edit: here is the video
http://www.youtube.com/watch?v=NquQlQM2ptU

Again to get the example to work:
-do not execute in zip folder
-need display mode of 32 bit colors

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 20:26
SMD_3D Interactive

I can see perfectly the box deforming its shape and the texture aswell, but when we save the model, and try to load it in other program and play animation, just a white box appears like a normal box without texture and without animation.

About to Model Props, I can't get registered any longer because the interface of the program start but don't ask to enter the key and just when we go to help ,it shows us how to register linking to your selling site. any idea

Cheers.

I'm not a grumpy grandpa
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jan 2012 20:50 Edited at: 15th Jan 2012 20:52
...humm interesting.... ill take a look at the download.

And no the dbo file created needs the texture and animation extracted from the objects memblock.

It is not possible to save as a dbo with that information not knowing the full structure of the dbo file itself.

The only reason Model Prop can do it is cause it has a plugin that saves to the .x format. From there i could just load the .x and save as .dbo without problems.

Sorry i cant help then but i tried.


edit: tested an unregistered modelprop and the register button works fine.

Just enter your registration information and it will work.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 20:55 Edited at: 15th Jan 2012 20:59
What about adding a register area where you enter the key ? How can I introduce the key you gave me in Model Porps ?...I'm very fond to Model Props and now I can't save

Edited
That is what I meant....I can't get into the register area...I click on it but nothing

Cheers.

I'm not a grumpy grandpa
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 15th Jan 2012 21:13 Edited at: 15th Jan 2012 21:14
does it say registered ?

if it does then your good.

What version of Windows you running?

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 21:24 Edited at: 15th Jan 2012 21:26
Quote: "does it say registered ?

if it does then your good.

What version of Windows you running?"


I'm running windows vista and the register area shows like this:



I don't know if it means that I'm registered, but if so...when I save....just textures appear

Cheers.

I'm not a grumpy grandpa
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 15th Jan 2012 21:41
Here's my model if you want to test

Cheers

I'm not a grumpy grandpa
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 16th Jan 2012 13:10
the was fun the forum was down for close to 24 hours

@Max P

there willing to sell "Real-time Occlusion Culling"
humm if they do not
then they are nuts ;o) lol

one thing I wish to point out

I bought

Hands On DarkBASIC Pro - Volume 1
Hands On DarkBASIC Pro - Volume 2

from the people who created it but at a cheaper price and in pdf
there was no option for buying the pdf format
then again I do not thing the creators were offering the book to be sent

it was going to be $90 usa just for shipping all they were offering
it in book format

so I do not see why I can't buy from the creator of the program ?

just something to think about ;O)

to move side ways - is to move forward
Since a Strait line gets thin fast
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 16th Jan 2012 13:13
@SMD_3D Interactive

in the example you posted yes every thing did display

what we are saying if you when to look at it out side of it
all we got was a box with no animation or image that you created for it

to move side ways - is to move forward
Since a Strait line gets thin fast
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 16th Jan 2012 14:23
Yeah i understand now what you guys are after. You will need to dig into the dbo format and be able to write to it manualy without using save object command.

You may have a better chance at learning the direct x format and saving the data.

Find a program that saves a .x in txt format that can display how bones are setup and hopefully learn from that.

However i believe it would be easier to just use built in functions to create animations and load them in from the objects built in memblock commands. I think this will take less time as i even shown you.

But good luck!

@resourceful... do you have troubles with saving to the .x format within MP? I dont get much feedback but i know it works on my end.

gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 16th Jan 2012 16:57
@SMD_3D Interactive

I own Milkshape 3d and I have True Space 7.6 just after it went free
and if I remember correctly there should be commands to save x from DBP

so there are a lot a options I have for working with x

I just have to find the path you used and make a loader for what you did
and I am all set

to move side ways - is to move forward
Since a Strait line gets thin fast
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 16th Jan 2012 19:16 Edited at: 16th Jan 2012 23:34
@Resourceful
SMD_3D Interactive meant if you have any problems saving from Model Props to x to test possible bugs.
Cheers.

I'm not a grumpy grandpa
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 17th Jan 2012 01:17
Actualy what i ment was....

Find an application (not Model prop) as model prop can not save a txt based .x file that has bone based animations.

Modelprop however can save a limbed (seperate meshes rigged object) to .x in the txt format but will not help you.

Eg here is a cube in text .x format.



This file would make a simple cube that has no animation data....

But what you guys are after is a solid mesh Bipped model. 1 rigged so it had limb bones not limb meshes.

cheers

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 17th Jan 2012 01:26
Quote: "But what you guys are after is a solid mesh Bipped model. 1 rigged so it had limb bones not limb meshes"


You're right. That can be done of course with a program that add bones to every vertex of the cube, but for a single box, we can make an easy function to animate it within Dbpro

Cheers.

I'm not a grumpy grandpa
gwheycs62egydws
16
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 17th Jan 2012 05:03
I've got one idea I am cures about

in the Truck Driving Games I own
they have a water droplet that forums when the rain
hits the windshield of the truck like like it happens in real world

I know it's a matrix that changes as it moves down the screen

based on whats been said so far it has the following rules

detect hit location

find out how much hit that location
and deform as it moves down the screen

for every build up spot that hits the windshield it would have to calculate it's movement

and the final 2 peaces the droplets would have to be affect by movement of the truck & wind speed and direction

and it's not just one location as it would be like about between 300 to 500 to my best guess

once a droplet hit's the life of that droplet ends so anther droplet can be created

one tiny end to all this if temperature is to be part of this thought
the moisture rising so that comes down to a smoke or fog peace

every thing sound strait foreword but as we all know the more objects
to deal with the more time it takes to have take place slowing down other things

to move side ways - is to move forward
Since a Strait line gets thin fast

Login to post a reply

Server time is: 2026-07-10 00:43:53
Your offset time is: 2026-07-10 00:43:53