Search found 50 matches
- Sat Apr 20, 2024 7:18 am
- Forum: 3D Programming
- Topic: EntityCollide
- Replies: 0
- Views: 86
EntityCollide
Hello! Trying some 3D and I have some problems with entitycollide and jumping. Without entitycollide the cube moves as it should and with entitycollide it lags. When i try easy jumping it jumps but when I move the cube in any direction then falling slows down. InitEngine3D() InitSprite() InitKeyboar...
- Wed May 03, 2023 11:12 am
- Forum: Game Programming
- Topic: Sprite - direct pixel manipulation
- Replies: 5
- Views: 1318
Re: Sprite - direct pixel manipulation
You can do shirts seperate sprites then use
DisplayTransparentSprite(sprite,x,y,255,RGB(?,?,?))
/Micke
DisplayTransparentSprite(sprite,x,y,255,RGB(?,?,?))
/Micke
- Thu Apr 20, 2023 7:29 pm
- Forum: Bugs - 3D Engine
- Topic: [Done] Engine3d defect - All OS
- Replies: 7
- Views: 2176
Re: Engine3d defect - All OS
Just testing updates. This makes my red lights to disappear on every mesh. CreateLight(0 , 0) SetLightColor(0, #PB_Light_DiffuseColor, RGB(127, 127, 127)) And I now use: RotateEntity() MoveEntity() RotateCamera() MoveCamera() I store all values in arrays and not using yaw(), pitch() or roll() at all...
- Mon Jan 30, 2023 11:16 am
- Forum: Bugs - 3D Engine
- Topic: [Done] Engine3d defect - All OS
- Replies: 7
- Views: 2176
Re: Engine3d defect - All OS
Will engine3d get updated?
I'm using pb 5.62 and it works well.
pb5.73 have shadow issues on my computer(every shadow is red).
I don't have LOD in 5.62 but thats not a big problem.
/Micke
I'm using pb 5.62 and it works well.
pb5.73 have shadow issues on my computer(every shadow is red).
I don't have LOD in 5.62 but thats not a big problem.
/Micke
- Mon May 16, 2022 1:50 pm
- Forum: 3D Programming
- Topic: Screen opens for only a few seconds.
- Replies: 7
- Views: 1173
Re: Screen opens for only a few seconds.
Hello, Something like this maybe... InitEngine3D() InitSprite() InitKeyboard() InitMouse() OpenScreen(1920,1080,32,"3db",#PB_Screen_NoSynchronization,60) UsePNGImageDecoder() UsePNGImageEncoder() Add3DArchive("3darchive", #PB_3DArchive_FileSystem) LoadMesh(1, "window_dae.mes...
- Sun Feb 06, 2022 10:45 am
- Forum: Coding Questions
- Topic: AutoStretch + windowMouse
- Replies: 4
- Views: 447
Re: AutoStretch + windowMouse
Perfect, it works great. Thank you so much.
- Sun Feb 06, 2022 8:59 am
- Forum: Coding Questions
- Topic: AutoStretch + windowMouse
- Replies: 4
- Views: 447
Re: AutoStretch + windowMouse
Hello, No it won't work.
for 1024x768 = 1.6 ish
I don't know how I can do it with code to calculate it.
for 1024x768 = 1.6 ish
Code: Select all
mx = WindowMouseX(winId) / 1.6
my = WindowMouseY(winId) / 1.6
- Sun Feb 06, 2022 8:21 am
- Forum: Coding Questions
- Topic: AutoStretch + windowMouse
- Replies: 4
- Views: 447
AutoStretch + windowMouse
Hello! When I use AutoStretch in OpenWindowedScreen then my sprite dosen't move with the mouse. I don't know the formula to calculate it. Any ideas? InitSprite() winId = OpenWindow(#PB_Any, 0, 0, 640, 480, "Test", #PB_Window_SystemMenu) OpenWindowedScreen(WindowID(winId), 0, 0, 640, 480, #...
- Wed Dec 22, 2021 2:45 pm
- Forum: 3D Programming
- Topic: Camera range
- Replies: 4
- Views: 1919
Re: Camera range
I don't get it to work so I check how far entitys are from the player instead. Not the best but it will work for me.
Thanks
Thanks
- Wed Dec 22, 2021 2:41 pm
- Forum: 3D Programming
- Topic: Ogre 16bit limit issue
- Replies: 5
- Views: 1626
Re: Ogre 16bit limit issue
It Works better now with use32bitindexes="true"
Many thanks
Many thanks
- Fri Dec 17, 2021 7:48 pm
- Forum: 3D Programming
- Topic: Camera range
- Replies: 4
- Views: 1919
Re: Camera range
Issue example: InitEngine3D() InitSprite() InitKeyboard() winID = OpenWindow(#PB_Any, 0, 0, 1024, 768, "Test") OpenWindowedScreen(WindowID(winID), 0, 0, 1024, 768) WorldShadows(#PB_Shadow_Modulative, -1, #Gray) CreateCube(1, 0.5) CreateEntity(1,MeshID(1), #PB_Material_None) CreatePlane(0,5...
- Fri Dec 17, 2021 2:28 pm
- Forum: 3D Programming
- Topic: Camera range
- Replies: 4
- Views: 1919
Camera range
Hello again!
When I use modulative shadows then camerarange() is ignored. Is there something I can do, or do I have missed something?
I dont want to choose between shadows and camera range.
/Mikael
When I use modulative shadows then camerarange() is ignored. Is there something I can do, or do I have missed something?
I dont want to choose between shadows and camera range.
/Mikael
- Sat Dec 11, 2021 8:34 pm
- Forum: 3D Programming
- Topic: Ogre 16bit limit issue
- Replies: 5
- Views: 1626
Re: Ogre 16bit limit issue
If I make a tree with sapling tree gen in blender and want some more branches and splits it will exceed the vertex index limit even without leaves.
Does the ogre xml converter convert quads to tres? If so then I understand why the vertex count is added after convert.
/Mikael
Does the ogre xml converter convert quads to tres? If so then I understand why the vertex count is added after convert.
/Mikael
- Sat Dec 11, 2021 2:10 pm
- Forum: 3D Programming
- Topic: Ogre 16bit limit issue
- Replies: 5
- Views: 1626
Ogre 16bit limit issue
Hi, I have issues with 3d models from Blender to PureBasic. Small objects with texutes is no problem but more complex models reach the 16bit vertex index limit fast. Blender Report says: Orginal Vertices: 9324 Exported Vertices: 40308 it's not over 65536, or do the shadows add to vertex count? The m...
- Tue May 18, 2021 7:50 am
- Forum: Feature Requests and Wishlists
- Topic: Update 3D libraries
- Replies: 27
- Views: 9138