Blender Models

Previous topic - Next topic

matty47

Hi, do I have to do anything "special" to export models from blender? I have tried a few models but I think that I may have trouble with the scaling. Is there anyway to read the size (x,y,z) from the ddd file so that placement of the camera is in a suitable location?
Thanks
I will persevere.
Matthew

Schranz0r

Take a look at :

Code (glbasic) Select
//#####################################
//   Start the function at start of the Mainloop!
//   Create NO other Cam
//
//  example:
//    X_MAKE3D 1,1000,45
//    X_3rd_Person(0,0,0,  100,5)
//    ......
//
//   Player_x, Player_y, Player_z = x, y, z of the Player
//
//   Max_Entfernung_zum_Spieler:
//      Max. distance to the Player
//
//   Min_Entfernung_zum_Spieler:
//      Min. distance to the Player
//
//#####################################

FUNCTION  X_3rd_Person: Player_x, Player_y, Player_z, Max_Entfernung_zum_Spieler, Min_Entfernung_zum_Spieler
   IF ein_durchlauf = FALSE
      Entfernung = Max_Entfernung_zum_Spieler
      my = 45
      ein_durchlauf = TRUE
   ENDIF
   
   
   X_CAMERA cam_x+Player_x, cam_y+Player_y, cam_z+Player_z,    Player_x, Player_y, Player_z
   

   
   INC Entfernung,MOUSEAXIS(2)*5
   IF Entfernung < Min_Entfernung_zum_Spieler THEN Entfernung = Min_Entfernung_zum_Spieler
   IF Entfernung > Max_Entfernung_zum_Spieler THEN Entfernung = Max_Entfernung_zum_Spieler

   mx = mx + MOUSEAXIS(0)/4
   my = my + MOUSEAXIS(1)/4

   IF my < 0 THEN my = 0
   IF my > 80 THEN my = 80

   cam_x = Entfernung * COS(mx)
   cam_z = Entfernung * SIN(mx)
   cam_y = Entfernung * SIN(my)
ENDFUNCTION
I hope you can use it.
Thats a Camara view like a 3rd Person Cam, Free Rotation with Zoom
You can zoom the Cam with the Mouseweel!

So you can check the size of youre Model.


sorry for that bad english... :P
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matty47

Thanks, I'll give it a go
matt