Page 1 of 1

How do you save your 3D models?

Posted: Mon Dec 10, 2012 2:32 pm
by r7mk4
Hi,

It's really easy with

Code: Select all

  Add3DArchive("Data/Packs/Desert.zip", #PB_3DArchive_Zip)
  Add3DArchive("Data/BIN", #PB_3DArchive_FileSystem)
to access to mesh-files etc.

But how to restrict the access to the costumers who use the distributed software to access to the raw model data?
It's quite easy to open a zip-file and if you buy models e.g. at turbosquid you are not allowed to redistribute the 3D-files as data...

Is there a possibility to use a password for the PB_3DArchive_Zip?
Or can somebody post me a workaround?

Cheers

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 3:27 pm
by PMV
r7mk4 wrote:It's quite easy to open a zip-file and if you buy models e.g. at turbosquid you are not allowed to redistribute the 3D-files as data...
I don't know the license-restrictions from turbosquid,
but every 3d-model is just "data", regardless what format you are using. :)
The most games doesn't encrypt there models, because it is
never impossible to get that, if you invest enough time.
(and this time is not that much, if you know what you are doing :lol: )
Because of copyright, there is no need to encrypt them. :D

But thats not the thread-title, so to be short:
PB-OGRE3D needs to have the data in its own plain mesh-format.
No other way is provided to load data as to load plain *.mesh
files from disc, no possibility to get them from memory.
Maybe it could be possible to write something with AddMeshFace(),
AddMeshVertex(), ... and make your own loading-routine for
encrypted 3d-models.

MFG PMV

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 4:00 pm
by Comtois
Here they suggest renaming resources, it is the easiest solution.
http://www.ogre3d.org/forums/viewtopic.php?f=5&t=48025

Extract
The best thing to do would to simply put stuff in a ZIP archive with a different extension. That'll keep out most of the newbies. Even Crysis did this, they just used a renamed ZIP archive.

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 4:10 pm
by IdeasVacuum
No other way is provided to load data as to load plain *.mesh
files from disc, no possibility to get them from memory.
I have never done it, but if you set up a virtual disc in RAM, wouldn't that work?

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 4:24 pm
by PMV
As my understanding is, it would need to register this
virtual disc in system ... and thats the time where
it is possible for someone else to get the plain file. :)


But sorry, renaming is a common way ... should have
mentioned that, too. :)

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 5:38 pm
by r7mk4
Extract
Quote:
The best thing to do would to simply put stuff in a ZIP archive with a different extension. That'll keep out most of the newbies. Even Crysis did this, they just used a renamed ZIP archive.
That's funny. This is the way I did, but I thought it's a really bad idea.
I thought that's such a bad idea that I didn't want to mention that in my first post... :P

Doing such a cool engine like the crytek one and just renaming zip-files is... strange :!:

Maybe it's a little improvement to make a renamed zip incl. password and extract it to a renamed zip into the temporary folder and load from there....
The purebasic native packer seems to be useable...

Really, I'm little bit confused that just renaming is the common way... :?

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 5:52 pm
by Shield
Java's JAR Files are also just renamed ZIP files. :wink:
Usually it doesn't matter if you encrypt game files or not. If your game gets popular,
someone will write an extractor to get models / sounds / textures.

If you game doesn't get popular, nobody really cares to actually do that.
It's a waste of time to figure out a way to encrypt something to prevent access. It's just not possible.

Re: How do you save your 3D models?

Posted: Mon Dec 10, 2012 6:54 pm
by Thade
Look for Enigma Virtual Box (it's free) - or MoleBox (costs money - is much easier to use)
They work very good with PureBasic.