Advertising (This ad goes away for registered users. You can Login or Register)

How Do i Find a Bug on my application

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
Posts: 1
Joined: Thu Apr 16, 2020 6:30 am

How Do i Find a Bug on my application

Post by sheikharifamin » Thu Apr 16, 2020 6:35 am

Hi everybody, I'm trying to write a simple 3D sample program for the vitasdk in c++. It has a huge focus on being object oriented and is set up in a way that it may be able to be expanded and compiled as a library in the future. Everything compiles okay, but it doesn't run as expected. All I'm trying to do with it is render a simple triangle primitive using a properly set up gxm (i.e. triple buffering, use of the gxm_context, render_target, sync_objects etc) and simple passthrough shaders.
The problem: The triangle is drawn and rotates on screen, but the 3rd vertex, the last one declared, is drawn so far out of range that the RGB triangle looks more like an RG rectangle.

EDIT: I no longer think the wvpData[] is the problem, as changing the color of the first vertice to blue breaks the program.... It's got to be a memory size/alignment/allocation issue, or shader program creation issue... or something. I'm grasping at straws here! lol

I've been working on this for a few days now, and unfortunately I don't have very much time to allocate to it. I have the code posted on git and I would appreciate some outside knowledge from some nice people that may be willing to help. My goal for this is to get it working, then it could be stripped down (i.e. the logger class) to be simple enough to use as a sample for people in the open source vitasdk. There aren't many cpp samples and there aren't any 3D samples, let alone anything that fully sets up the gxm and shader patcher.

Posts: 3
Joined: Fri Nov 01, 2019 4:36 pm

Re: How Do i Find a Bug on my application

Post by sneazzy95 » Wed May 06, 2020 4:25 pm

Hey, have you figured out how to write your program ?

Post Reply

Return to “Programming and Security”