Search found 93 matches

by fincs
Sun May 07, 2023 11:49 am
Forum: Switch Development
Topic: In the DEKO3D TextureCube example, what's the proper way to render 2 cubes?
Replies: 3
Views: 4586

Re: In the DEKO3D TextureCube example, what's the proper way to render 2 cubes?

Hi there, The render function starts and ends a frame, as you can tell by the "acquireImage/presentImage" commands, so you are in effect rendering alternate frames with each cube. You need to change your program so that you upload uniforms, execute the render cmdlist, then reupload uniform...
by fincs
Sun Aug 28, 2022 11:35 am
Forum: Gamecube/Wii Development
Topic: Need help building with CMake
Replies: 4
Views: 6487

Re: Need help building with CMake

You just need to execute it directly, like this, within the msys2 shell:

Code: Select all

/opt/devkitpro/portlibs/wii/bin/powerpc-eabi-cmake -S . -B build
by fincs
Sat Aug 27, 2022 12:56 pm
Forum: 3DS Development
Topic: Problems with IBO - Citro 3d
Replies: 1
Views: 4229

Re: Problems with IBO - Citro 3d

You correctly copied your indices_list to a new buffer in linear memory, but then forgot to actually use it in C3D_DrawElements.
by fincs
Sun Aug 21, 2022 2:02 pm
Forum: Gamecube/Wii Development
Topic: Need help building with CMake
Replies: 4
Views: 6487

Re: Need help building with CMake

CMake toolchain files can't be used with include(), instead they should be passed from the command line as a special argument. We offer a wrapper script around cmake that automatically does this: /opt/devkitpro/portlibs/wii/bin/powerpc-eabi-cmake. After removing the extraneous include line, and addi...
by fincs
Sun May 29, 2022 8:10 pm
Forum: 3DS Development
Topic: DevilutionX performance degradation
Replies: 2
Views: 4107

Re: DevilutionX performance degradation

A fix for this issue has been rolled out. You can run (sudo) (dkp-)pacman -Syu to pull the latest packages.
by fincs
Sat Jun 12, 2021 3:52 pm
Forum: Announcements
Topic: June 2021 Updates
Replies: 10
Views: 32516

libnx v4.1.0

After tons of bikeshedding, we finally present the new version of libnx, v4.1.0, with improved support for Horizon version 12.x.x!

With special thanks to ndeadly for their work on the bluetooth service wrappers.

Detailed changelog
by fincs
Sat Jun 05, 2021 12:53 pm
Forum: 3DS Development
Topic: Citro2d textures/vram/image-type/etc
Replies: 2
Views: 5800

Re: Citro2d textures/vram/image-type/etc

Looking at the source code for "Tex3DS_SubTexture" makes it seem like it's just a struct that describes a region, is this correct? What's the purpose of then creating an 'image' from the texture (but not the target) using the subtexture info? Looking at the code in the linked post, it loo...
by fincs
Sat Jun 05, 2021 12:42 pm
Forum: 3DS Development
Topic: C2D_DrawRectangle set compositing OR "ClearRectangle" analog
Replies: 2
Views: 5953

Re: C2D_DrawRectangle set compositing OR "ClearRectangle" analog

Hi, sorry for taking long to respond. I believe you submitted this question afterwards in the citro2d issue tracker. I'm reposting my answer here, where it really belongs: citro3d and citro2d are designed to be usable concurrently. In addition, citro2d does not alter alpha blending state in any way....
by fincs
Sun Dec 06, 2020 1:12 pm
Forum: Switch Development
Topic: How to detect system language?
Replies: 1
Views: 10340

Re: How to detect system language?

setInitialize/setGetSystemLanguage/setMakeLanguage/setExit should do the trick, I think.

https://github.com/switchbrew/libnx/blo ... #L865-L883

Also see how hbmenu does it: https://github.com/switchbrew/nx-hbmenu ... .c#L17-L21