Search found 103 matches

by Gunslinger
Feb 10, 2024 9:59
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

Ah yes got it now :) First i did think csg function is for subtracting mesh shapes from 2 bodies. I'm working as a engineer with 3D cad software a lot, where sometimes i use to subtract/add or intersect 3D bodies. I was mistaken this is the same idea. it's not. Maybe it's a good idea to pack some of...
by Gunslinger
Feb 09, 2024 12:05
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

The decal mesh is supposed to be on the sphere Sorry i did not know, and yes i got the last 1.3 version. Still think there are very big caps in csg mesh. My modifactaions #include "openb3d.bi" screenres 1920,1080, 32, , &h10002 Graphics3d 1920,1080,32,1,1 var camera=CreateCamera() var...
by Gunslinger
Feb 08, 2024 19:02
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

Nice work, thanks for the updates. I have played around with mesh svg and lighting seems to be fix. in version 1.3 I don't think gaps in the mesh is suppose to happen? Link to screen: https://ac1.servegame.com:88/Mesh-svg.png Also made some screen of state of my game the world/universe is almost inf...
by Gunslinger
Feb 06, 2024 15:30
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

Code: Select all

CameraClsColor(cam3, 0.8, 0.5, 0.7)
CameraFogColor(cam3, 0.1, 0.5, 0.9)
This color range is wrong, need to be in 0 to 255 range, color blue at 0.9 is to low for me to see :)
It will not fix the camera problem, seems a bug to me.
Same on LibOpenB3D version.
by Gunslinger
Jan 27, 2024 12:08
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

Thank you for your information. my function checks uv if coordinates are different and copies normals from original in same way (maybe..it has bugs) For spheres it works great now. I did some testing with 1000 sphere(32) with and without mesh optimize function. All rolling around with physics on the...
by Gunslinger
Jan 25, 2024 18:59
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

I'm not sure what you mean with EntityMatrix. UseEntity function? no idea how to use that. But i got distracted bij how many vertex point are created in createspheres() and createcube() createspheres(16) has 1984 vertices and 1425 are duplicated vertex point at same points createspheres(32) has 8064...
by Gunslinger
Jan 21, 2024 20:24
Forum: Libraries & Headers
Topic: libOpenB3D Win32/64 Linux32/64
Replies: 27
Views: 15785

Re: libOpenB3D Win32/64 Linux32/64

Found a probleem in openb3d.bi file declare sub ClearSurface (byval _Surface as tSurface ptr, _ byval bClearAllVertices as long = true, _ byval bClearAllTriangles as long = true) needs to be declare sub ClearSurface (byval _Surface as tSurface ptr, _ byval bClearAllVertices as long = 1, _ byval bCle...
by Gunslinger
Jan 21, 2024 8:49
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

This example should work a bit better. By the way, if you need a complete physics engine, you would indeed need an external libraries. The functions provided by OpenB3D are mostly for collision detections #include "openb3d.bi" screen 18, 32, , &h10002 Graphics3d 640,480,32,1,1 var cam...
by Gunslinger
Jan 20, 2024 13:49
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

I'm trying to make a builder for a spaceship in game. like a box grid 2d. like engine and top-cone, fuel tanks, living apartments, trusters. Where you can place them there every you like. but placing truster out of center of mass will result in problems on lift-off. So i did not had a lot of time th...
by Gunslinger
Jan 13, 2024 13:07
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

Because the constraints affects the pivots, not their parent entities. The pivots should not be children of player, they should be independent entities, and then you should use CreateRigidBody to use them as a reference for the player entity (you need four pivots: one for the position, and three fo...
by Gunslinger
Jan 09, 2024 7:31
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

got it, Any idea why createconstraints are not keeping the box at place ?
making the cube feets it one entity is also not working for me.
by Gunslinger
Jan 08, 2024 20:18
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

i give up, 100 ways to make is crash. entitybox seems not implemented. This code below try to fix feets with 3 constraints for each feet. #include "openb3d.bi" #INCLUDE "crt/STDIO.BI" #include "fbgfx.bi" #if __FB_LANG__ = "fb" Using FB '' Scan code constants a...
by Gunslinger
Jan 05, 2024 9:58
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

Yes i think i already got all of this. About the ship with lading feets. I am tryng to make a more complex collision chape than a single raduis. The ship is a cone and from side its a triangel in 2d. Putting a cirkel or elipse collision on triangel chape is a bad fit. Zo i put 2 small cube feet on b...
by Gunslinger
Jan 04, 2024 18:13
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

ActNewtonian is a nice function to make beter motion. I wish i can get to current velocity of current movement speed. Also like to fix the z position at 0 because i make a 2d game in 3d space. In my code i made a sample space ship from a cone shape with 2 very small cube as landing feeds. The feet a...
by Gunslinger
Jan 02, 2024 9:45
Forum: Libraries & Headers
Topic: MiniB3d for FreeBasic
Replies: 1083
Views: 307448

Re: MiniB3d for FreeBasic

You can modify the makefile and recompile it, in case you want to change its name Otherwise, you can put the two versions of the library in two different directories, and when you compile and launch your program you set the PATH variable to one directory or another (the library doesn't have to be i...