Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - CompMix

Pages: 1 2 [3] 4 5
31
Modification Help / Re: [DLL] Large Orthographic Screenshots
« on: January 26, 2020, 02:54:03 PM »
I made a quick script to snap your view to a certain vector to make it easier to take isometric shots (adapted from old aimbot script):

Code: [Select]
function snapAimToVec(%obj, %target)
{
    %ev = %obj.getEyeVector();

    %x = getWord(%ev, 0);
    %y = getWord(%ev, 1);
    %z = getWord(%ev, 2);

    %xx = getWord(%target, 0);
    %yy = getWord(%target, 1);
    %zz = getWord(%target, 2);

    $mvYaw   = mATan(%xx, %yy) - mATan(%x, %y);
    $mvPitch = mATan(%z, mSqrt(%x * %x + %y * %y)) - mATan(%zz, mSqrt(%xx * %xx + %yy * %yy));
   
    if ($mvYaw > $pi)
        $mvYaw -= $pi * 2;
   
    if ($mvYaw < -$pi)
        $mvYaw += $pi * 2;
}

Try "snapAimToVec(findclientbyname("namehere").getControlObject(), "0.57735 -0.57735 -0.57735");"! You can also do "0 0 -1" for %target and then use "$mvYaw = $pi / 2;" for top-down shots.

Edit: Someone wanted to make a 360 view of a build, so I wrote a quick script for that too:

Code: [Select]
function snapAimCircle(%obj, %angle, %center, %height, %width)
{
    %circle = vectorScale(mCos(%angle) SPC mSin(%angle) SPC 0, %width);
    %pos    = getWords(vectorAdd(%center, %circle), 0, 1) SPC (getWord(%center, 2) + %height);
   
    %obj.setTransform(%pos SPC getWords(%obj.getTransform(), 3, 6));
    snapAimToVec(%obj, vectorNormalize(vectorSub(%center, %pos)));
}

"snapAimCircle(findclientbyname("namehere").getControlObject(), <angle in radians>, <center of build xyz>, <height>, <width>);" to move your control object (camera works best) and snap its view to the center around a circle.

Result:

https://i.imgur.com/J0RHEOz.gifv

(I'm really terrible at making GIFs, but more skilled people can use this to make something better!)

32
Gallery / Re: Enhanced Graphics Screenshots + Graphical Resources
« on: January 26, 2020, 02:12:33 PM »
Pic of a mini empires city from Alica's:

https://leopard.hosting.pecon.us/dl/ptolv/orthoScreenshot.png

New orthographic screenshots DLL!! :D

https://forum.blockland.us/index.php?topic=325164.0

33
Modification Help / [DLL] Large Orthographic Screenshots
« on: January 26, 2020, 01:38:17 AM »
Here is a DLL I made a long time ago to take large orthographic screenshots. It can be useful for generating maps, pretty looking isometric screenshots, or super crisp renders of models.

Large screenshot of the Golden Gate Bridge:

https://leopard.hosting.pecon.us/dl/vvsbb/orthoScreenshot.png

Crispy screenshot of the Blockhead (large screenshot downscaled):

https://i.imgur.com/mvhEpuw.png

This DLL also fixes the size limitation of $megaShotScaleFactor.

Usage: enter "setOrthoCamera(true, <scale>);" into the console, position your camera to your liking, then enter "doHUDOrthographicScreenshot(<divisions>);". The higher the scale, the more zoomed out you will be. The higher the divisions, the more the frustum will split and increase the resolution of your screenshot. The resulting file will be written to your game directory as orthoScreenshot.png.

NOTE: does not work with shadows yet. It's planned to support them later.

Enjoy! As usual, you can DM me for a build or instructions.

Source: (github)

34
Off Topic / Re: day discussion topic i guess [day 1227]
« on: November 25, 2019, 12:13:56 PM »
Wow!! Thanks for the support! I'm glad there's people out there like you guys that are so encouraging. This is a breath of fresh air.

35
Off Topic / Re: day discussion topic i guess [day 1226]
« on: November 24, 2019, 12:27:04 PM »
Hey, how are you guys doing? I have a few weeks of treatment left, things are going well for me. Thanks to those who helped me through my recent relapse.

36
Off Topic / Re: pride month 4 thread
« on: September 30, 2019, 11:28:27 AM »
Going to CD treatment soon. Thanks for everything. My apologies to the people involved, this must have been terrifying.

37
Off Topic / Re: pride month 4 thread
« on: September 13, 2019, 03:51:56 PM »
A

38
Off Topic / Re: pride month 4 thread
« on: September 12, 2019, 01:09:07 PM »
A

39
Off Topic / Re: pride month 4 thread
« on: September 12, 2019, 10:24:20 AM »
A

40
Off Topic / Re: pride month 4 thread
« on: September 12, 2019, 10:21:02 AM »
A

41
Off Topic / Re: pride month 4 thread
« on: September 11, 2019, 10:24:19 PM »
A

42
Off Topic / Re: pride month 4 thread
« on: September 11, 2019, 10:19:53 PM »
A

43
Off Topic / Re: pride month 4 thread
« on: September 10, 2019, 01:37:52 PM »
A

44
Off Topic / Re: pride month 4 thread
« on: September 10, 2019, 09:34:55 AM »
A

45
Off Topic / Re: pride month 4 thread
« on: September 10, 2019, 06:22:55 AM »
A

Pages: 1 2 [3] 4 5