Page 2 of 10

Re: [OPTing] OPTech v2

Posted: Sat Apr 20, 2019 12:45 pm
by JeremyaFr
UPDATE
I've updated OPTech.
Changes are:
- added support for bmp files with less than 256 colors

Re: [OPTing] OPTech v2

Posted: Mon Apr 22, 2019 5:17 am
by ual002
Lets say I goofed and added an extra texture somewhere creating an errant extra flight group color. I cant remember where, is there a way to just delete anything associated with a specific flight group color?

Re: [OPTing] OPTech v2

Posted: Mon Apr 22, 2019 12:54 pm
by JeremyaFr
UPDATE
I've updated OPTech.

The changes are:
- add the fg count to the facelist
- add a button to sort the faces by fg count
- add a button to remove a fg

Re: [OPTing] OPTech v2

Posted: Mon Apr 22, 2019 1:13 pm
by ual002
[Kneels]

Your generosity knows no bounds master.

Re: [OPTing] OPTech v2

Posted: Tue Apr 23, 2019 1:19 am
by ual002
JeremyaFr, this is an example of my project. If you go ahead and create the opt, all the new textures are pink in game, even after your update. I could run them all thru that online converter and it would fix them but that seems silly. Take a look and see what you think.

https://www.dropbox.com/s/dgb24dcrmvq8a ... ut.7z?dl=0

Re: [OPTing] OPTech v2

Posted: Tue Apr 23, 2019 3:52 am
by Darksaber
If you don't have Paintshop Pro or want to keep using the online convertor you could download this Image Editor called Gimp it's free to download , it has Tutorials, it could be your answer

Export file as palleted 8bit per pixel BMP from GIMP

Re: [OPTing] OPTech v2

Posted: Tue Apr 23, 2019 8:25 am
by JeremyaFr
Thanks for the sample.
I've found what is the problem. I will fix it.

Re: [OPTing] OPTech v2

Posted: Tue Apr 23, 2019 10:28 am
by JeremyaFr
UPDATE

I've updated the texture reading. The problem was that the bmp files contained extra bytes at the end.

Re: [OPTing] OPTech v2

Posted: Tue Apr 23, 2019 11:04 am
by ual002
Right on. And yes DS gimp was a good idea. I totally forgot about it.

Re: [OPTing] OPTech v2

Posted: Thu May 30, 2019 6:39 am
by Darksaber
Jeremy I came across this error, while importing a opz into an opz, then trying to move the LOD from the imported opz, to the original opz

Code: Select all

---------------------------
Press Ctrl+C to copy the text
---------------------------
System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
   at OPTech.CXXX.CreateCall2() in C:\projects\optech\OPTech\OPTech\CXXX.cs:line 214
   at OPTech.RenderScreenControl.renderscreen_OpenGLDraw(Object sender, OpenGLEventArgs args) in C:\projects\optech\OPTech\OPTech\RenderScreenControl.xaml.cs:line 104
   at SharpGL.WPF.OpenGLControl.timer_Tick(Object sender, EventArgs e)
   at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK
---------------------------

Re: [OPTing] OPTech v2

Posted: Thu May 30, 2019 1:56 pm
by JeremyaFr
Hello,
I've fixed the error.
Please redownload OPTech.

PS: Have you had time to try the new xwopter?

Re: [OPTing] OPTech v2

Posted: Thu May 30, 2019 2:11 pm
by Darksaber
Thanks for the fix Jeremy,

xwaopter? No, sorry I didn't realize that you finished it, I'll take a look now :D (rubs hands)

Re: [OPTing] OPTech v2

Posted: Wed Jun 12, 2019 2:11 pm
by Vince T
Hey Jeremy, I've got a 'little' request.
Not sure if it's been asked before, but would it be possible to add an Undo function?

Re: [OPTing] OPTech v2

Posted: Wed Jun 12, 2019 5:02 pm
by Trevor
what is the difference between xwaopt and optech? is it purely cosmetic at this point (and source language .NET/MFC) or does one have features the other will never have?

Trev

Re: [OPTing] OPTech v2

Posted: Wed Jun 12, 2019 7:22 pm
by JeremyaFr
Hello,
The app already has a basic undo/redo functionality (see the panel at the right). So yes, it can be extended.

Re: [OPTing] OPTech v2

Posted: Wed Jun 12, 2019 9:18 pm
by Vince T
Ah yes, ok. Took me a moment to figure out how it works. But that should do it. Thanks Jeremy!

Re: [OPTing] OPTech v2

Posted: Thu Jun 13, 2019 7:53 am
by Vince T
Trevor wrote:
Wed Jun 12, 2019 5:02 pm
what is the difference between xwaopt and optech? is it purely cosmetic at this point (and source language .NET/MFC) or does one have features the other will never have?

Trev
XWA OPTer (or OPT fix) is a different program, whose main and only function is to fix numerous shading issues on OPTs, making edges sharper and stops flat surfaces from appearing round. The program has been in use for years (Available from DS' site > File Archive > OPT Editors) but uses old coding. Jeremy has made an effort to convert it to C#.

Re: [OPTing] OPTech v2

Posted: Thu Jun 13, 2019 2:14 pm
by JeremyaFr
The main difference between OPTech and XwaOptEditor is the creation process.
With OPTech, you import an untextured model in a DXF file (or an other format) and do the texturing in the program.
With XwaOptEditor, you import an already textured model in a OBJ file (or an other format).

Re: [OPTing] OPTech v2

Posted: Thu Jun 13, 2019 2:28 pm
by Trevor
ah cool, XWAOptEditor would defiantly be the process model I would use :P

Trev

Re: [OPTing] OPTech v2

Posted: Wed Jun 19, 2019 6:57 pm
by JeremyaFr
UPDATE

I've included the Scaling Factor dialog from XwaOptEditor.
You can scale the entire opt (when no mesh is selected) or just the selected meshes.

Re: [OPTing] OPTech v2

Posted: Wed Jun 19, 2019 6:59 pm
by Darksaber
Thanks mate, that's great :)

Re: [OPTing] OPTech v2

Posted: Thu Jun 20, 2019 6:23 am
by Bman
Hi, is this new scaling update for Optech or OPTer? The latter is one GT mentioned. Couldn't find updated link.

Re: [OPTing] OPTech v2

Posted: Thu Jun 20, 2019 12:32 pm
by Vince T
The update is for OPTech

Re: [OPTing] OPTech v2

Posted: Sat Jun 22, 2019 4:49 pm
by Trevor
(lol)
I had a quick look at the wiki and it might be an idea to add said utilities there with brief explanation of differences

Trev

Re: [OPTing] OPTech v2

Posted: Wed Jun 26, 2019 10:16 pm
by Vince T
Hm thought I'd put something in there. Will do later this week.