logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / August / 23 / 1
endrift
Are there any good libs for simple 2d stuff for the 3DS?
I just basically want to draw textures on rectangles
ABigDeal
sf2dlib
endrift
ah cool thanks
heh xerpi wrote this one too
sgowen
omg this is what I needed
I'm gonna add textures to my Tappy Plane port now, sweeeet
endrift
hmm, I can't get it to compile
error: 'GPU_KEEP' undeclared (first use in this function)
I just updated ctrulib too
ABigDeal
hmmm... compiled here just now
endrift
hmm
I wonder if ctrulib removed GPU_KEEP
ABigDeal
it's defined in libctru/include/gpu/gpu.h
sgowen
hey, so in order to use this, I need to convert my texture sheets into the c files, I don't suppose anyone knows where I can find the script that does this?
Subv
endrift: try with GPU_STENCIL_KEEP
fincs just merged my stencil PR, which renamed that
endrift
ah ok thanks
so I was right
Subv
sgowen: you could just load them at runtime from the sd card
sgowen
oh its the GIMP RGBA C-Source dump, just had to read
Subv
embedding them into C files is just to get around the fact that we don't have an available RomFS to store stuff
endrift
okay now it's compiling
sgowen
I only have 2 textures, so I'm cool with converting them to C files for now
ABigDeal
Subv: did you submit a pull requeest for sf2dlib for that change yet?
Subv
ABigDeal: what's sf2dlib?
endrift
Subv: yes I am working on the mGBA port :P
ABigDeal
simple fast 2d drawing library
Subv
endrift: you read my mind, i was about to ask :D
ABigDeal
I'll take that as no and will get a pull request together for it for him
Subv
thanks
endrift
I'm adding a menu
Subv
got a link for it, ABigDeal?
endrift
so you can actually load a different ROM
ABigDeal
https://github.com/xerpi/sf2dlib
Subv
i'd kill for a GLSL -> PICA (Nihstro | picasso) compiler
endrift: how's the performance with the new ninjhax?
endrift
much better
Subv
i take it the o3DS is still too slow
endrift
I haven't tried the O3DS yet
Subv
(Action) volunteers
endrift
I'll release an alpha as soon as I get sound working
sgowen
hey guys, I get the following error when compiling sf2d:
unknown type name 'aptHookCookie'
endrift
update libctru
sgowen
probably a silly mistake on my end
ah!
okay will do
got everything building guys, thanks so much
endrift
weird, sf2d_create_texture seems to be returning null I think
sf2d_create_texture(256, 256, TEXFMT_RGB565, SF2D_PLACE_VRAM);
that's the function call
and I did call sf2d_init()
Subv
test it out on citra to find the cause of the problem
endrift
I guess I could
gonna need to update citra
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcore.a(vfpinstr.cpp.o) has no symbols
whoops
/Users/jeffrey/Scratch/citra/src/video_core/shader/shader_interpreter.cpp:405:71: error: no member named 'GetSrc1' in 'nihstro::Instruction::(anonymous union at
I guess I should be posting this in #citra
(#citra-emu?)
smea: thanks for updating ironhax, it works consistently now
Subv
<@Subv> huh, fun fact, the GPU doesn't explode if you set GPUREG_NUMVERTICES to an out of range value
^ anybody has any idea why this happens?
yuriks
register is actually several bitfields?
Subv
with "out of range" i meant: upload 6 vertices, try to draw 60
yuriks
oh.
endrift
it's crashing in a place that doesn't make any sense
yeah I have no idea how to fix this
it works fine in Citra
but it crashes in a place that doesn't make any sense when I run it on a 3DS
ABigDeal
unaligned memory access?
StapleButter
[04:56:04] <Subv> with "out of range" i meant: upload 6 vertices, try to draw 60
it doesn't know you only uploaded 6 vertices
it'll read whatever is past your buffer and attempt to draw that
(and maybe freeze if NaNs happen to be in there?)
endrift
time to disassemble this sh*t
ABigDeal: I doubt it
heh well this function could be optimized better but it's not actually called more than once so whatever
seems like it might be an issue with the loader
yeah I'm pretty sure this is a problem with the loader
either that or the compiler, somehow
I'm pretty sure I have the latest version of the homebrew launcher though
yuriks
how large is the 3dsx?
endrift
~600kB
yuriks
using CN?
endrift
Ironhax
I can try using CN
but I doubt that would make any difference
yuriks
they have different max binary sizes iirc
endrift
I'm pretty sure this is smaller than the launcher itself
anyway this worked before I linked in sf2dlib
and if I just remove the reference to one function it works, but that function is a bit important....
yuriks
were you using the GPU before?
endrift
not really
I was using gsp stuff a bit
https://github.com/mgba-emu/mgba/blob/port/3ds/src/platform/3ds/main.c this version works fine
yuriks
the gpu is notoriously finicky, and citra doesn't emulate a lot of that finickiness
endrift
I made a version that doesn't even touch the GPU other than initializing it and it still crashes :/
yuriks
problem might be in the init then :|
« prev 1 2 next »