[Done] PB 6.21 - CreateLine3D() Bug

All bugs related to the 3D engine
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

[Done] PB 6.21 - CreateLine3D() Bug

Post by Mijikai »

CreateEntity() fails on the CreateLine3D() mesh!
Tested on Linux + PB 6.21. (have not tested this on Windows!)

Code (based on the example from the help):

Code: Select all

InitEngine3D() 
InitSprite() 

OpenWindow(0, 0, 0, 640, 480, "Line3D example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 640, 480, 0, 0, 0)

; Light
CreateLight(#PB_Any, RGB(25, 25, 180), -5, 10, 5, #PB_Light_Point)

; Camera
CreateCamera(0, 0, 0, 100, 100)
MoveCamera(0, 2, 1, 3, #PB_Absolute | #PB_Local)
CameraLookAt(0, 0, 0, 0)

; Erstelle die Linie und binde sie an die Szene
CreateLine3D(0, 0, 0, 0, RGB(255, 0, 0), 1, 1, 1, RGB(0, 0, 255))
Debug CreateEntity(0, MeshID(0), #PB_Material_None);<- does not create the entity!

Repeat
  
  RotateEntity(0,0.5,0.5,0.5,#PB_Relative);<- can not rotate the line!
  
  RenderWorld()
  FlipBuffers()
Until WaitWindowEvent(1) = #PB_Event_CloseWindow
Last edited by Mijikai on Tue Jun 10, 2025 7:46 pm, edited 1 time in total.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: PB 6.20 - CreateLine3D() Bug

Post by Psychophanta »

Confirmed in windows same behaviour!
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Fred
Administrator
Administrator
Posts: 18199
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.21 - CreateLine3D() Bug

Post by Fred »

The doc is wrong, you can't create an entity with line3D, it's automatically displayed. I will update it and change the example.
Post Reply