September 28, 2021, 06:10:41

Author Topic: .B3D ENCRYPTED  (Read 2603 times)

Offline Santiago

  • Sr. Member
  • ****
  • Posts: 290
  • Blitz3d
    • Indiesoft
.B3D ENCRYPTED
« on: October 23, 2019, 06:08:43 »
i wish to protect my .b3d files, so, i compile my game, and i have directories with .b3d files.

i dont wan't make a big pack game, because is slow for client read a game with a huge packs.

I think, what happen if i change LOADMESH function, and make a new one like LOADMESH_ENCRYPT function.

when the loadmesh function read the file data, make the uncrypted process.

someone do something like that? do you think that is possible to do?

Offline Matty

  • Hero Member
  • *****
  • Posts: 1369
    • MattiesGames
Re: .B3D ENCRYPTED
« Reply #1 on: October 23, 2019, 08:47:01 »
Is there any point since hardly anyone in the world knows b3d format ?
I eat cheese in the trees when its eight degrees

Offline TomToad

  • Hero Member
  • *****
  • Posts: 554
Re: .B3D ENCRYPTED
« Reply #2 on: October 23, 2019, 09:08:02 »
A couple of ways come to mind.  One would be to download the Blitz3D source from github, find the LoadMesh function, and pass the data through a decrypt function.

Second would be to come up with your own mesh format, then use Blitz3D's AddSurface, AddVertex, AddTriangle etc... functions to buid the mesh manually.
------------------------------------------------
8 rabbits equals 1 rabbyte.

Offline Derron

  • Hero Member
  • *****
  • Posts: 3651
Re: .B3D ENCRYPTED
« Reply #3 on: October 23, 2019, 09:28:29 »
> i dont wan't make a big pack game, because is slow for client read a game with a huge packs.


Why? Open a file, seek to the position, stream the data to the loader.


Aside of that: any data you load to something "useable" means someone could rip from there.


bye
Ron

Offline col

  • Hero Member
  • *****
  • Posts: 597
Re: .B3D ENCRYPTED
« Reply #4 on: October 23, 2019, 10:55:42 »
There are a couple of ways to do this. 1st way is to convert from b3d to a format that only you know of. 2nd way is to encrypt the data itself requiring you to decrypt it.

Quote
Aside of that: any data you load to something "useable" means someone could rip from there.
However it would stop the casual asset flipper from easily copying your hard work.

Offline Derron

  • Hero Member
  • *****
  • Posts: 3651
Re: .B3D ENCRYPTED
« Reply #5 on: October 23, 2019, 11:02:32 »
If he encrypts the data or has a custom format - he already could use what I suggested too: a datastream into a "package" (multiple files in one ".pack").


bye
Ron

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1283
Re: .B3D ENCRYPTED
« Reply #6 on: October 23, 2019, 18:09:36 »
you don't need to encrypt anything, just create your own mesh format (with some obfuscation if you are paranoid), and that's all.
the structure of a mesh i :
mesh
 surface(s)
  vertice(s)
  triangle(s)
  brush/material
   color
   alpha
   fx
   blend
   texture(s)

and for rigged skinned animated meshes you need to add
bones/joints
skinnedvertices
weights
animations
 poses/frames
  bones scales rotations positions

to create bones (joints), and skinned vertices, and weights, you will need the update B.002 (or B.003) made by Bobysait...
here : http://mojolabs.nz/posts.php?topic=105408
« Last Edit: October 23, 2019, 21:08:31 by RemiD »
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline MrmediamanX

  • Sr. Member
  • ****
  • Posts: 278
    • 3MX Digital
Re: .B3D ENCRYPTED
« Reply #7 on: November 20, 2019, 07:09:30 »
I generally compile all assets into a single exe using Blitzmedialinker, If I need to compress files down I tend to use BBCruncher
just keep in mind the less deeper within directories/folders the assets are, the quicker the decompression come runtime.
« Last Edit: November 20, 2019, 12:28:18 by MrmediamanX »

Offline STEVIE G

  • Hero Member
  • *****
  • Posts: 610
Re: .B3D ENCRYPTED
« Reply #8 on: November 20, 2019, 18:07:59 »
I generally compile all assets into a single exe using Blitzmedialinker, If I need to compress files down I tend to use BBCruncher
just keep in mind the less deeper within directories/folders the assets are, the quicker the decompression come runtime.

Do you have links to these?  Do they work with Blitz3D?

Offline MrmediamanX

  • Sr. Member
  • ****
  • Posts: 278
    • 3MX Digital
Re: .B3D ENCRYPTED
« Reply #9 on: November 21, 2019, 03:21:18 »
both tools can be found here. indeed they work with blitz3d. to compile multi source includes/BB files just select and add them like any other assets...cool :)
http://www.puretools.eu/eng/rechts.htm

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal