![]() | ||
Views: 23,779,723 |
Home
| Forums
| Uploader
| Wiki
| Object databases
| IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search |
02-07-25 10:40 AM |
Guest: |
0 users reading Editor development | 1 bot |
Main - General SM64DS hacking - Editor development | Hide post layouts | New reply |
Arisotura |
| ||
![]() Star Mario in this room you have a pile of apple pies Level: 165 ![]() Posts: 1318/9052 EXP: 58426657 Next: 509024 Since: 07-03-12 From: in a box ![]() Last post: 1 day ago Last view: 1 day ago |
A note about high-res textures: with the DS's GPU, texcoords don't work like they do with OpenGL. 1.0 in texcoord units equals one pixel. Meaning that if you replace a texture with a larger one (or a smaller one), you'll also need to update the texcoords accordingly. Unless you can somehow get texture scaling to work.
This also worsens the texcoord overflow problem. A lot. The bigger the texture is and the less it can repeat across a polygon. To give an example: texcoords are stored as 12:4 fixed point, that is: 1bit sign, 11bit integer part, 4bit fractional part. They range from -32768 to 32767, that is, from -2048.0 to ~2047.9. If your texture is 16x16, it can repeat at most 127 times. If it repeats more, texture coordinates will overflow, resulting in visually wrong results. ____________________ NSMBHD - Kafuka - Jul melonDS the most fruity DS emulator there is zafkflzdasd |
Crashdance22 |
| ||
Normal user Level: 24 Posts: 19/112 EXP: 77701 Next: 424 Since: 05-04-13 Last post: 3180 days ago Last view: 2422 days ago |
Replacing tree textures still corrupts the US ROM. Also, replacing a texture with the same name as another texture in the same level corrupts other textures using that name. And considering I've been running into so many texture issues, can you configure the editor to not commit texture changes until you click save? This will allow me to verify importing a texture doesn't break the ROM (often it appears blocky/corrupted in the preview) before I save the file and have to go back and do a restore. |
Fiachra |
| ||
Local moderator Level: 65 Posts: 128/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
Posted by Crashdance22 They're probably using the same palette and you're overwriting it when you import a new texture. I'll change it to create a new palette entry.
Have done. |
Crashdance22 |
| ||
Normal user Level: 24 Posts: 20/112 EXP: 77701 Next: 424 Since: 05-04-13 Last post: 3180 days ago Last view: 2422 days ago |
Nope, tree still corrupts the ROM. Do you have a US ROM to test with? |
Fiachra |
| ||
Local moderator Level: 65 Posts: 129/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
Posted by Crashdance22 I know it's still corrupting and yes, I have all 5 versions but I haven't had any time recently - I'm in the middle of exams. Is there a reason you can't just use the EUR ROM until it's fixed? Can you try with some other models stored in archives? |
Crashdance22 |
| ||
Normal user Level: 24 Posts: 21/112 EXP: 77701 Next: 424 Since: 05-04-13 Last post: 3180 days ago Last view: 2422 days ago |
Must have misunderstood what you said about the palettes, you must be talking about the duplicate name issue. Just tested that and it's still happening as well. Take your time there is no rush at all, I'm just poking around testing stuff. ![]() |
Crashdance22 |
| ||
Normal user Level: 24 Posts: 22/112 EXP: 77701 Next: 424 Since: 05-04-13 Last post: 3180 days ago Last view: 2422 days ago |
Are there scale properties for these objects? |
Fiachra |
| ||
Local moderator Level: 65 Posts: 146/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
Most of them don't but you should be able to change the value in the first 4 bytes of the BMD file to increase the scale, 0 = normal, 1 = 2x bigger, 2 = 4x bigger etc.
You could export and re-import for more precise control but you'd have to fix the textures manually. |
Fiachra |
| ||
Local moderator Level: 65 Posts: 152/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
I had nearly gotten the levels displaying properly in the editor's Java port but I just tried building the latest version of the editor in Mono and it turns out that it does actually work under Linux!
|
Crashdance22 |
| ||
Normal user Level: 24 Posts: 23/112 EXP: 77701 Next: 424 Since: 05-04-13 Last post: 3180 days ago Last view: 2422 days ago |
Screenshot doesn't work, but that's awesome! Does this mean just about any OS running Java can run this? |
Fiachra |
| ||
Local moderator Level: 65 Posts: 154/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
That's not the Java version, that's it running running in Linux under Mono. It means it can run in Windows, Linux and Mac.
Fixed image in above post. |
Tahcryon |
| ||
Embodiment of Time Can someone lead me to a non-capitalist clothing store? Level: 129 Posts: 3089/5087 EXP: 24602418 Next: 447236 Since: 07-07-12 Last post: 2492 days ago Last view: 1054 days ago |
Oh my god oh my god oh my god. Fiachra, have I ever told you how awesome you were?! Really awesome work ![]() ____________________
|
MK7tester |
| ||
![]() Magikoopa I'm back Level: 105 ![]() Posts: 1988/3145 EXP: 11959176 Next: 303084 Since: 07-07-12 From: Dolphic Island Last post: 2886 days ago Last view: 2884 days ago |
That looks great Fiachra! Nice work! :yum: |
mariogalaxythree |
| ||
Member Blarg. Yoshi. Of. Composing. Affected by 'RainBlarg' Syndrome Level: 111 Posts: 3024/3627 EXP: 14535045 Next: 333315 Since: 12-24-12 Last post: 2553 days ago Last view: 2493 days ago |
Wow, you are the god of SM64ds hacking Fiachra! Way to make the best use of an underrated game! ____________________
-MG3- IS HERE |
Arisotura |
| ||
![]() Star Mario in this room you have a pile of apple pies Level: 165 ![]() Posts: 1529/9052 EXP: 58426657 Next: 509024 Since: 07-03-12 From: in a box ![]() Last post: 1 day ago Last view: 1 day ago |
Posted by Fiachra Ah? From what I remember, it was nothing but pain. It wouldn't work with .NET 4.0 because of something that wasn't implemented in Mono, and the 3D would work rather randomly... Anyway, if that removes the requirement of making a Java port, it's all good ![]() ____________________ NSMBHD - Kafuka - Jul melonDS the most fruity DS emulator there is zafkflzdasd |
Fiachra |
| ||
Local moderator Level: 65 Posts: 155/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
It would give an error when trying to cast certain Form objects such as SplitPaneContainer to ISupportInitialize which wasn't supported in Mono but you don't actually need to have it, it can be safely removed and then it works. I'm going to add keyboard navigation to make the 3D easier to use. |
Arisotura |
| ||
![]() Star Mario in this room you have a pile of apple pies Level: 165 ![]() Posts: 1538/9052 EXP: 58426657 Next: 509024 Since: 07-03-12 From: in a box ![]() Last post: 1 day ago Last view: 1 day ago |
Fiachra |
| ||
Local moderator Level: 65 Posts: 166/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
Committed Mono changes (should've done that a few weeks ago). You should be able to check it out as it is and have it compile/run in Mono without any modification. Doesn't affect how it works in VS2010.
bin/ folder also updated with newest versions, so people stop asking how to compile it. |
Arisotura |
| ||
![]() Star Mario in this room you have a pile of apple pies Level: 165 ![]() Posts: 1645/9052 EXP: 58426657 Next: 509024 Since: 07-03-12 From: in a box ![]() Last post: 1 day ago Last view: 1 day ago |
Fiachra |
| ||
Local moderator Level: 65 Posts: 167/1065 EXP: 2314990 Next: 20638 Since: 12-15-12 From: Ireland Last post: 2448 days ago Last view: 397 days ago |
When you make a change to a form, eg. adding a button, these two lines get re-added (they prevent most of the forms working):
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); As long as you remove these, it should be fine in Mono. I've been able to switch between VS2010 and Mono without any problems. |
Main - General SM64DS hacking - Editor development | Hide post layouts | New reply |
Page rendered in 0.079 seconds. (2048KB of memory used) MySQL - queries: 29, rows: 236/236, time: 0.030 seconds. ![]() © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |