Ooops
November 27, 2020, 05:55:24 AM

Author Topic: .B3D ENCRYPTED  (Read 2226 times)

Offline Santiago

  • Sr. Member
  • ****
  • Posts: 283
  • Blitz3d
    • Indiesoft
.B3D ENCRYPTED
« on: October 23, 2019, 06:08:43 AM »
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: 1253
    • MattiesGames
Re: .B3D ENCRYPTED
« Reply #1 on: October 23, 2019, 08:47:01 AM »
Is there any point since hardly anyone in the world knows b3d format ?

Offline TomToad

  • Hero Member
  • *****
  • Posts: 517
Re: .B3D ENCRYPTED
« Reply #2 on: October 23, 2019, 09:08:02 AM »
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: 3262
Re: .B3D ENCRYPTED
« Reply #3 on: October 23, 2019, 09:28:29 AM »
> 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

  • Sr. Member
  • ****
  • Posts: 465
Re: .B3D ENCRYPTED
« Reply #4 on: October 23, 2019, 10:55:42 AM »
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.
To be is to be perceived.

https://github.com/davecamp

Offline Derron

  • Hero Member
  • *****
  • Posts: 3262
Re: .B3D ENCRYPTED
« Reply #5 on: October 23, 2019, 11:02:32 AM »
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: 1066
Re: .B3D ENCRYPTED
« Reply #6 on: October 23, 2019, 06:09:36 PM »
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
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

  • Full Member
  • ***
  • Posts: 242
    • 3MX Digital
Re: .B3D ENCRYPTED
« Reply #7 on: November 20, 2019, 07:09:30 AM »
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.

Offline STEVIE G

  • Sr. Member
  • ****
  • Posts: 498
Re: .B3D ENCRYPTED
« Reply #8 on: November 20, 2019, 06:07:59 PM »
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

  • Full Member
  • ***
  • Posts: 242
    • 3MX Digital
Re: .B3D ENCRYPTED
« Reply #9 on: November 21, 2019, 03:21:18 AM »
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