Homebrew How to use the 3D feature with citro3d?

MinedGamer

Member
OP
Newcomer
Joined
Jan 12, 2021
Messages
7
Trophies
0
Age
20
XP
67
Country
Canada
Does anyone know how to use the 3ds's 3d functionality with citro3d.
I want to make the example : textured_cube using 3d. I made a second target for the other eye.
For now, I am doing :
Code:
C3D_FrameBegin(C3D_FRAME_SYNCDRAW);
            C3D_RenderTargetClear(targetl, C3D_CLEAR_ALL, CLEAR_COLOR, 0);
            C3D_RenderTargetClear(targetr, C3D_CLEAR_ALL, CLEAR_COLOR, 0);
            C3D_FrameDrawOn(targetl);
            sceneRender(0.25);
            C3D_FrameDrawOn(targetr);
            sceneRender(-0.25);
C3D_FrameEnd(0);
I also added an offset variable in sceneRender to draw from both perspective.
Unfortunately, I haven't been able to draw both view points.
I don't know what I am missing and would appreciate any help.
Thanks in advance.
 
  • Like
Reactions: Julie_Pilgrim

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: I hate myself