Ir al contenido

Foto

MDBConfig


  • Por favor identifícate para responder
31 respuestas en este tema

#1
rjshae

rjshae
  • Members
  • 4.477 mensajes

Here's a little Java project I've been dabbling with from time to time:

 

mdbconfig_zpsrgdkjt0o.jpg

 

The file I have open is a Standard Castle single-door room tile; the current tab is the floor packet.

 

The interface should allow almost all of the parameters in a static MDB file to be modified without needing to open a 3D editor. Each packet in the file is opened in a separate tab. The color buttons you see above pop up a Java color chooser dialog.

 

Now I just need to get the save file functionality working....


  • A kamal_, Ubai, ColorsFade y a 1 más les gusta esto

#2
Tchos

Tchos
  • Members
  • 5.030 mensajes

Looking good!



#3
kamal_

kamal_
  • Members
  • 5.235 mensajes

I don't suppose the MDB model viewer could be added to it? http://neverwinterva...db-model-viewer



#4
rjshae

rjshae
  • Members
  • 4.477 mensajes

I don't suppose the MDB model viewer could be added to it? http://neverwinterva...db-model-viewer

 

That I don't know. I'd thought about adding a mesh viewer and a UV map display, but decided I didn't want to try implementing that with the initial release due to the added time and complexity.



#5
rjshae

rjshae
  • Members
  • 4.477 mensajes

I'm still making progress on this. After a re-write to take advantage of the Java 7 ByteBuffer capability, I can now properly save files. The SpecularPower and SpecularValue fields have been added. All of the test file types have been successfully loaded: placeables, tiles, weapons, body, head, and hair models. I still need to implement the clipboard functions for editing text fields, and then do the final round of testing to make sure everything works right. Hopefully it'll be ready in a few more weeks (or months... depending on free time).


  • A PJ156, kamal_ y 4760 les gusta esto

#6
rjshae

rjshae
  • Members
  • 4.477 mensajes

The initial release is available:

If you have an interest, please give it a try and let me know if you encounter any issues.



#7
Tchos

Tchos
  • Members
  • 5.030 mensajes

I can try it out forthwith to adjust specular power and value.


  • A rjshae le gusta esto

#8
rjshae

rjshae
  • Members
  • 4.477 mensajes

Yes, I'd be curious to know what visual impact those parameters have. Presumably they modify how the specular color is displayed under different lighting conditions? *shrug*



#9
Tchos

Tchos
  • Members
  • 5.030 mensajes

They're very important.  Having the power (or strength) greater than zero is necessary for the specular maps to have any effect.  They should always be at 100% so that the power can be controlled by the map, as long as there is a map.  The value is how sharp or diffuse the effect is.  I usually set it at 20 for general purposes, like most of the Witcher placeables.  I've discussed the settings further in that thread and in the recent one with Olnorton's head/neck matching.


  • A rjshae le gusta esto

#10
rjshae

rjshae
  • Members
  • 4.477 mensajes

Unfortunately, I've discovered a couple of bugs with the first release:

  • It doesn't save a map file that has been set via the 'File...' button. As a work-around, you can select and then deselect the text field. This will trigger the field focus listener, thereby updating the parameter.
  • The parameters file is not being updated on exit. This may be because Java won't write to a hidden file. I'll try temporarily unhiding the file for the update and see if that works.

I'll need to make some modifications.



#11
kevL

kevL
  • Members
  • 4.052 mensajes
Rj, is this [going to be] a replacement for MDBCloner? ( i hope so )

not that i do much w/ graphics but ... yeah, looking good

#12
rjshae

rjshae
  • Members
  • 4.477 mensajes

Rj, is this [going to be] a replacement for MDBCloner? ( i hope so )

not that i do much w/ graphics but ... yeah, looking good

 

I think so, although I'm not 100% certain since I've rarely used MDBCloner. For me it's a replacement for having to use a hex editor (which is not very efficient). I suppose it could also be used as an investigative tool to see how different models are configured.



#13
rjshae

rjshae
  • Members
  • 4.477 mensajes

Unfortunately, I've discovered a couple of bugs with the first release:

  • It doesn't save a map file that has been set via the 'File...' button. As a work-around, you can select and then deselect the text field. This will trigger the field focus listener, thereby updating the parameter.
  • The parameters file is not being updated on exit. This may be because Java won't write to a hidden file. I'll try temporarily unhiding the file for the update and see if that works.

 

Version 1.1 has been uploaded to address these two issues. Other than that, I've been using the tool on my own content and it seems to work fine. Please let me know if you encounter any other issues.



#14
rjshae

rjshae
  • Members
  • 4.477 mensajes

Of course I fix those and then two more bugs pop up:

  • Alpha Blend material flag selection is saved as Cutscene Mesh.
  • Hair Shortening behavior and Helm Hair behavior is not being saved.

So, another update is in the works...



#15
rjshae

rjshae
  • Members
  • 4.477 mensajes

Of course I fix those and then two more bugs pop up:

  • Alpha Blend material flag selection is saved as Cutscene Mesh.
  • Hair Shortening behavior and Helm Hair behavior is not being saved.

So, another update is in the works...

 

Version 1.2 is uploaded with these issues fixed. Is that all of the bugs now? Stay tuned...  :)

 

I had this idea for adding a texture file viewer to the file chooser dialog for when you're selecting new map texture files. It looks to be feasible by adding an accessory to JFileChooser, and source code samples for displaying the textures look to be available. But I'm going to hold off until I'm convinced that all the current bugs have been stomped out.



#16
rjshae

rjshae
  • Members
  • 4.477 mensajes

I uploaded version 1.4, which adds some minor refinements:

  • You can now right-click on text boxes and an edit menu will appear. This should save time when doing copy-paste operations.
  • When you save a model, all tabs are reloaded with the new values. This was based on a suggestion, but I really should also set it back to the selected tab. Next release maybe....
  • The current open or save file choosers try to stick with the prior directory selection, and these paths are stored on exit. Now, if the paths no longer exist on restart, it should try to select the lowest possible parent folder that contained the old path. This is to reduce the amount of navigation I need to do.
  • Sometimes the specular value can have a really tiny value, which requires exponential notation to display. That was being hidden by my formatting the numbers on load, but it turned out to be more important than I thought (for tile retexturing). Now I instead just use the default Java Float representation.


#17
rjshae

rjshae
  • Members
  • 4.477 mensajes

Based on a suggestion, I added a history function to the file chooser. This will list folders where you recently opened or saved files, allowing you to click on those entries and relocate the current directory to that folder. Hopefully this will make navigation quicker and easier. This update is in version 1.5.

fig08_zpsfbna3v7z.jpg

 

Version 1.6:

  • Widened the history list by 25%
  • Restore the selected tab following a post-save reload of the tabbed pane

  • A PJ156 le gusta esto

#18
rjshae

rjshae
  • Members
  • 4.477 mensajes

Well I thought I had this in a stable form, but then I discovered a "feature" while working with an imported model. Due to some string length checking I was unable to blank out a texture field filled with an inapplicable file name. This has been fixed, allowing you to enter a blank name. I used this revision (1.7) as an opportunity to further widen the history list. Hopefully this is it now... but you never know.

 

I've been using this tool fairly regularly now. For me it's become a big time saver. Hopefully it's useful to those who downloaded it. Thanks for giving it a try.



#19
kevL

kevL
  • Members
  • 4.052 mensajes
+1

#20
4760

4760
  • Members
  • 1.203 mensajes
I've started using it, and I must say it's a nice tool. A few comments though:
- the history is not saved (version 1.7) after the soft is closed: could at least the paths be stored in a txt file and appear in the recent list when MDBConfig is run again?
- when a clone is saved, and the .mdb extension is removed while changing the name, it's not automatically added (then you get a file without the .mdb)
- renaming the mesh needs to be done for all three LOD meshes. Could an option (tick box maybe?) be added so that the new name and its _L01 and _L02 variants are all set in one go? I know it might break the cloned model if it's a multipart asset, but in most cases it will save time.
- I didn't check if the size of the window could be changed, is it possible (I find the most recent list is too large compared to the list of files, and hides quite a lot of details).
  • A rjshae le gusta esto

#21
Tchos

Tchos
  • Members
  • 5.030 mensajes

I've also used it a bit, and I had the same observation about the lack of saved paths.

 

Is there any way in a Java program to make the font bigger on my end?  Windows programs all respect my setting choice in the display options, but Java programs of course work with their own virtual machine, and they all appear much smaller on my system.

 

How does the "glow" setting work?  This is not the same kind of glow that's applied with an illumination map.


  • A rjshae le gusta esto

#22
rjshae

rjshae
  • Members
  • 4.477 mensajes

Thanks for the feedback, guys. I'll have to investigate how to implement some of these changes. Right now the history is saved on a menu quit or a model save.

 

How does the "glow" setting work?  This is not the same kind of glow that's applied with an illumination map.

 

I believe it's the highlight glow you get when you mouse over a useable object like a door. That flag should make it a permanent glow. I'm not sure how useful that would be though.

 

Ed.: I've been in class this week and I'm a tad swamped, so I haven't been able to get to it yet.



#23
rjshae

rjshae
  • Members
  • 4.477 mensajes

Thus far I've got these implemented:

  • Modify the interface font size. The available settings will be: 12, 15, 18, 21, 24 pt. Is that sufficient?
  • If the .mdb extension is missing on the save file, automatically add it
  • Update the user's properties file on each property change (e.g. accessing a new folder when selecting a file)

Each of the windows can be resized, so that's a work-around for the file browser list constraint. Unfortunately, placing the history list to the right side is the only layout available unless I take the non-recommended approach of modifying the dialog layout by accessing the internal components. (What I really want is to have the history list above or below the file list, but there's not a convenient way to do that with the default file chooser.)

 

I need to think about how to replicate the part fields to the LoD packets. I think I may make it a menu pick. I.e. go to a RIGD or SKIN packet tab then select a "Clone to LoD" menu item from the Edit menu, and it will replicate the properties to the appropriately named packets.


  • A Tchos y a PJ156 les gusta esto

#24
Tchos

Tchos
  • Members
  • 5.030 mensajes
  • Modify the interface font size. The available settings will be: 12, 15, 18, 21, 24 pt. Is that sufficient?

 

Yes, that would be very accomodating.



#25
rjshae

rjshae
  • Members
  • 4.477 mensajes

Okay, I've uploaded version 1.8 to the Vault. The image below shows the interface with a modified font size and the new "Clone to LoD" menu item. I've been testing it out on my own projects and it seems to be working normally. Please give it a try and let me know if you encounter any issues. Thanks.

fig09.jpg

 

P.S. If the history list still isn't being updated, then possibly there's a permissions issue on the hidden file.