Hi Meninstick, I cannot reproduce this issue. Are you sure you are making the call to drawSegment() *between* the calls to BeginScene() and EndScene()? Also, use the 2nd form you have below. Casting to ChVisualSystemIrrlicht will likely not work (because of some multiple inheritance for the vehicle visualization systems).
--Radu From: 'Meninstick' via ProjectChrono <[email protected]> Sent: Thursday, October 5, 2023 5:51 PM To: ProjectChrono <[email protected]> Subject: [chrono] DawSegments not showing line Hi, I'm trying to visualize certain points on a tracked vehicle at runtime. DrawSegment is not working for me, maybe I've misunderstood something. Ive tried at various locations but nothing shows up. I would be really thankful for any guidance. auto vis = chrono_types::make_shared<ChTrackedVehicleVisualSystemIrrlicht>(); . . . . while (vis->Run()) { //irrlicht::tools::drawSegment(std::static_pointer_cast<irrlicht::ChVisualSystemIrrlicht>(vis).get(), vehicle.GetChassis()->GetDriverPos(), vehicle.GetChassis()->GetDriverPos() + ChVector<>(0, 0, 10)); irrlicht::tools::drawSegment(vis.get(), vehicle.GetChassis()->GetDriverPos(), vehicle.GetChassis()->GetDriverPos() + ChVector<>(0, 0, 10)); -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/02641ab2-2943-4dec-893e-8f3d1c0113b3n%40googlegroups.com<https://groups.google.com/d/msgid/projectchrono/02641ab2-2943-4dec-893e-8f3d1c0113b3n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/PH0PR06MB82376D1426924490E6F3D7BEA7CAA%40PH0PR06MB8237.namprd06.prod.outlook.com.
