ObjReader Community

WIP => WIP => Topic started by: Patrice Terrier on October 09, 2018, 03:41:23 pm

Title: NCC-1701-A
Post by: Patrice Terrier on October 09, 2018, 03:41:23 pm
Here is the original of the new model i am working on.

Let's see how it looks like, once i have completed the OR reworked version ;)
Title: Re: NCC-1701-A
Post by: Patrice Terrier on October 09, 2018, 05:07:16 pm
Preview of my reworked version...
Title: Re: NCC-1701-A
Post by: Michael Lobko-Lobanovsky on October 10, 2018, 12:13:13 am
I am very very glad to see you back at work again, my friend! The model looks rather impressive! :)

I also have something in stock for you. Yes, that's exactly what you think it is: adjustable/storable/restorable top-down lighting to match the other three scene lights we already have. 8)

Please do the following:TIA
Title: Re: NCC-1701-A
Post by: Patrice Terrier on October 10, 2018, 09:59:47 am
Ok, here is the release candidate for my reworked version.

Mods:
Thank you my friend !
I shall merge everything, and will look at the overlay code.
Title: Re: NCC-1701-A
Post by: Michael Lobko-Lobanovsky on October 10, 2018, 02:22:53 pm
The model has every chance to look ... awesome! :D

What I admire particularly are the mighty turbines rotating gloriously in absolute vacuum. ;D

(I'm making a few fixes to some meshes. Stay tuned.)
Title: Re: NCC-1701-A
Post by: Patrice Terrier on October 10, 2018, 04:06:54 pm
Here is the patch for version 2.54

I think i have fixed the overlay scrolling bug.

If everything is ok by you, then i will release this version as the official V 2.54
Title: Re: NCC-1701-A
Post by: Michael Lobko-Lobanovsky on October 10, 2018, 09:05:07 pm
OK here are my minor mods.

What I did was:
Now I'm starting to study your code patch...
Title: Re: NCC-1701-A
Post by: Michael Lobko-Lobanovsky on October 10, 2018, 09:57:39 pm
Perfect Patrice,

Just one final touch. In overlay.h, in void CreateColorObjects() on line 555, please locate and fix the following:

........
    // MLL 10-10-2018: ==========================
    y += 4; nID = ID_top_ambient;
    y += bmH; COLORAMB(3); ZD_DrawRectangleToCtrl(hWnd, xOrigine, y, bmW, bmH, ZD_ARGB(255, r, g, b), 0, nID, ZS_VISIBLE, ZD_DRAW_FILLED, 0); ZD_SetObjectLocked(nID, TRUE);
    SetRect(&go.lightRect[9], xOrigine, y, xOrigine + bmW + 1, y + bmH - 1);
    y = y; nID--; ZD_DrawTextToCtrlEx(hWnd, L"Top ambient", x, y, 0, 0, nARGB, fontname, nFontSize, nID, ZS_VISIBLE, nShadow, 0); ZD_SetObjectHidden(nID, ZS_INACTIVE);
    CreateOnOff(hWnd, hBitmap, ID_ONOFF3, xOrigine + bmW - w - 2, y + (bmH - h) / 2);

    nID = ID_top_diffuse;
    y += bmH; COLORDIF(3); ZD_DrawRectangleToCtrl(hWnd, xOrigine, y, bmW, bmH, ZD_ARGB(255, r, g, b), 0, nID, ZS_VISIBLE, ZD_DRAW_FILLED, 0); ZD_SetObjectLocked(nID, TRUE);
    SetRect(&go.lightRect[10], xOrigine, y, xOrigine + bmW + 1, y + bmH - 1);
    y = y; nID--; ZD_DrawTextToCtrlEx(hWnd, L"Top diffuse", x, y, 0, 0, nARGB, fontname, nFontSize, nID, ZS_VISIBLE, nShadow, 0); ZD_SetObjectHidden(nID, ZS_INACTIVE);

    nID = ID_top_specular;
    y += bmH; COLORSPEC(3); ZD_DrawRectangleToCtrl(hWnd, xOrigine, y, bmW, bmH, ZD_ARGB(255, r, g, b), 0, nID, ZS_VISIBLE, ZD_DRAW_FILLED, 0); ZD_SetObjectLocked(nID, TRUE);
    SetRect(&go.lightRect[11], xOrigine, y, xOrigine + bmW + 1, y + bmH - 1);
    y = y; nID--; ZD_DrawTextToCtrlEx(hWnd, L"Top specular", x, y, 0, 0, nARGB, fontname, nFontSize, nID, ZS_VISIBLE, nShadow, 0); ZD_SetObjectHidden(nID, ZS_INACTIVE);
    // ===========================================
........



Now our ObjReaders are sync'ed. :)
Title: Re: NCC-1701-A
Post by: Patrice Terrier on October 10, 2018, 10:12:33 pm
OK, the fix has been done, i shall update the official version tomorrow, thanks!
Title: Re: NCC-1701-A
Post by: Michael Lobko-Lobanovsky on October 10, 2018, 10:13:04 pm
Thank you too, my friend! :D